开发者

Can I filter autocomplete suggestions by return type in Eclipse?

开发者 https://www.devze.com 2023-02-24 05:58 出处:网络
When autocompleting method calls in Eclipse, is it possible to filter the list of suggestionson these 开发者_如何学编程criteria :

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

精彩评论

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