开发者

Can I filter autocomplete suggestions by return type in Eclipse?

When autocompleting method calls in Eclipse, is it possible to filter the list of suggestions on these 开发者_如何学编程criteria :

  • return type
  • class implementing the method

i.e. when I type myArrayList. I would like to find methods returning boolean which are inherited from AbstractCollection ?


If you create a local variable and attempt to assign to it, Eclipse puts the matching return types first in the autocomplete list, e.g.

AbstractCollection obj;
boolean temp = obj.<autocomplete list>

If you declare obj as AbstractCollection, you won't see any other methods.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜