Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a method with a star icon in eclipse?

I often see a yellow start near the methods, and some percentage in Eclipse Luna's intelligent code completion:

enter image description here

What does this star and the percentage mean?

like image 499
Victor2748 Avatar asked Oct 29 '14 03:10

Victor2748


3 Answers

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.

like image 183
Stim Avatar answered Oct 29 '22 06:10

Stim


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

like image 29
Ted Hopp Avatar answered Oct 29 '22 05:10

Ted Hopp


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.

like image 1
IqbalHamid Avatar answered Oct 29 '22 05:10

IqbalHamid