Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What do the icons for methods in Eclipse mean? [duplicate]

Possible Duplicate:
What do the icons in Eclipse mean?

In the "Package Explorer" in the Eclipse IDE, I can click on a Java class and list all its methods. The methods are displayed with a few different icons before the name, including a green circle or a red square.

What do these icons mean? Is there a webpage that explains them?

like image 975
Jonas Avatar asked Oct 18 '10 07:10

Jonas


People also ask

How do I know where a method is used in eclipse?

Right click and select References > Project or References > Workspace from the pop-up menu. Show activity on this post. This will show you a Search view containing the hierarchy of class and method which using this method.

What does the blue triangle mean in eclipse?

Blue triangle indicates default (package visible) method.

What does the Brown asterisk icon on a file mean in eclipse?

This means that you've changed something in a file in your workspace but not pushed your changes to the master repository.


1 Answers

green circleGreen circle indicates a public method

red squareRed square indicates a private method

alt textYellow diamond indicates a protected method

alt textBlue triangle indicates default (package visible) method

This page gives an overview of all the icons used in Eclipse JDT. This page explains what the different access levels mean in Java terms, in case you aren't familiar with that.

like image 133
mikej Avatar answered Sep 19 '22 11:09

mikej