What is a method with a star icon in eclipse?

喜你入骨 提交于 2019-11-30 13:58:56

Both the star and the percentage are added by the Intelligent Code Completion.

These suggestions are based on context and code analysis (data mined) of similar situations. The percentage is presumably an indication for the confidence of that suggestion.


Protected methods (which was the explanation suggested by Ted Hopp) are in fact indicated by a yellow diamond with rounded corners, similar to the icon in the outline view.

From the Eclipse Luna documentation, it appears to mean that it is a protected method.

A number of code completion engines come equipped with Eclipse Mars edition onwards. They are provided by by eclipse.org Code Recommenders.

Normally eclipse orders members alphabetically. However, Code recommender engines will override the alphabetical listing and place commonly used icons near the top. For example println() would be presented near the top with a yellow star after you type System.out. and toString() would appear near the top with a yellow star after typing String obj.

The starred items will be followed by an alphabetical list of members which either could not be identified by the engines or identified as being unlikely to be applicable.

Percentages indicate the likelihood of the suggestion being applicable based upon code from other users who have used your components in their code.

The yellow star indicates that the suggestion has been provided from code recommenders based upon mined data.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!