Eclipse中常见图标的含义

本文列举了Eclipse中常见图标的含义,主要分为对象描述图标,修饰符图标。对于其他类型图标含义,请参看:http://help.eclipse.org/luna/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/ref-icons.htm

Object(对象图标)

1.source folder (源文件夹)


source folder
source folder

2.package(包)


package
package

3.empty package(空包)


empty package
empty package

4.logical package(逻辑包)


logical package
logical package

5.empty logical package(空逻辑包)


empty logical package
empty logical package

6.package only containing non Java resources(仅包含非Java资源的包)


package only containing non Java resources
package only containing non Java resources

7.package declaration(包声明)


package declaration
package declaration

8.import container(导入容器)


import container
import container

9.import(导入)


import
import

10.class (public)(公共权限的类)


Class (public)
Class (public)

11.interface (public)(公共权限的接口)


Interface (public)
Interface (public)

12.enum type (public)(公共权限的枚举类型)


Enum type (public)
Enum type (public)

13.annotation type (public)(公共权限的注解类型)


Annotation type (public)
Annotation type (public)

14.package visible class(包可见权限的类)


package visible class
package visible class

15.private class(私有访问权限的类)


private class
private class

16.protected class(保护权限的类)


protected class
protected class

17.default field (package visible)(默认权限字段,包可见)


default field (package visible)
default field (package visible)

18.private field(私有字段)


private field
private field

19.protected field(保护类型的字段)


protected field
protected field

20.public field(公共访问权限的字段)


public field
public field

21.default method (package visible)(默认访问权限的方法,包可见)


default method (package visible)
default method (package visible)

22.private method(私有方法)


private method
private method

23.protected method(保护类型的方法)


protected method
protected method

24.public method(公共权限的方法)


public method
public method

Object adornments(修饰对象的图标)

1.marks project as Java project(标记项目类型为Java)


Java Overlay
Java Overlay

2.constructor(构造函数)


Constructor Overlay
Constructor Overlay

3.abstract member(抽象成员)


Abstract Overlay
Abstract Overlay

4.final member(final类型成员)


Final Overlay
Final Overlay

5.static member(静态类型成员)


Static overlay
Static overlay

6.synchronized member(同步的成员)


Synchronized Overlay
Synchronized Overlay

7.native method(原生方法)


Native Overlay
Native Overlay

8.transient field(transient类型字段)


Transient Overlay
Transient Overlay

8.volatile field(volatile类型字段)


Volatile Overlay
Volatile Overlay

9.implements method from interface(从接口实现的方法)


Implementor of interface overlay
Implementor of interface overlay

10.overrides method from super class(从父类复写的方法)


Overrides Overlay
Overrides Overlay

后记

学习这些常见的图标含义,有助于开发过程中理解项目大纲结构,比如:

eclipseIconEg.png

本文找到这些图标含义方法其实很简单,直接google搜“eclipse icon meaning”,一般在第一页就能找到stackoverflow的问题回答,然后可以直接得到开篇提到的官方文档,如:What do the icons in Eclipse mean? - Stack Overflow

推荐阅读更多精彩内容