简体   繁体   中英

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:

在此输入图像描述

What does this star and the percentage mean?

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.

Eclipse Luna文档中 ,它似乎意味着它是一种受保护的方法。

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM