1. 程式人生 > >Eclipse 各種小圖示的含義

Eclipse 各種小圖示的含義

Eclipse的Package Explorer和Outline中用圖標表示了很多內容,其實能看懂這些圖示在程式設計中也是很有用的。

      綠色的小圓表示公有型別:如果是實心的就是函式(),如果是圈就表示是變數()。
      紅色的矩形表示私有型別:如果是實心的就是函式(),如果是空心就表示是變數()。
      保護類與保護函式用的是黃色的菱形:大菱形表示是函式(),小菱形表示是變數()。

      如果有一個向上的小三角就表示這是個函式,並且會丟擲異常。(
      如果有一個類似表型的圓圈就表示該變數或函式是synchronized(執行緒同步)。(

      如果小圖標出現一個C,就表示這是建構函式(

)。
      如果小圖標出現一個A,就表示這是抽象函式(abstract)()。
      如果小圖標出現一個F,就表示這是抽象函式(final)。(
      如果小圖標出現一個S,就表示這是靜態函式(static)(

      類的圖示是一個大C,表示一個類(),如果帶一個放音鍵似的三角,那就代表這個類是存在main函式的類(

Objects

Compilation Unit (*.java file) compilation unit (*.java file)
File ending with .java Java file which is not on a build path
class file class file
generic file (unknown content type) generic file (unknown content type)
unknown object unknown object
Java scrapbook page (*.jpage file) Java scrapbook page (*.jpage file)
Java scrapbook page (evaluation in progress) Java scrapbook page (evaluation in progress)
JAR description file JAR description file
JUnit test result file JUnit test result file
Java working set Java working set
Java model Java model
Library container library container
JAR file with attached source JAR file with attached source
JAR file without attached source JAR file without attached source
Class folder with attached source class folder with attached source
Class folder without attached source class folder without attached source
source folder source folder
package package
empty package empty package
logical package logical package
empty logical package empty logical package
package only containing non Java resources package only containing non Java resources
package declaration package declaration
import container import container
import import
Class (public) class (public)
Interface (public) interface (public)
Enum type (public) enum type (public)
Annotation type (public) annotation type (public)
package visible class package visible class
private class private class
protected class protected class
default field (package visible) default field (package visible)
private field private field
protected field protected field
public field public field
default method (package visible) default method (package visible)
private method private method
protected method protected method
public method public method

Object adornments

Java Overlay marks project as Java project
Java Overlay decorates files and folders if they are on the build path of their enclosing Java project
build path error decorator decorates Java projects and working sets that contain build path errors
Abstract Overlay this Java element causes an error
Warning Overlay this Java element causes a warning
Deprecation Overlay this Java element is deprecated
Constructor Overlay constructor
Abstract Overlay abstract member
Final Overlay final member
Static overlay static member
Default overlay default method
Synchronized Overlay synchronized member
Native Overlay native method
Transient Overlay transient field
Volatile Overlay volatile field
Run Overlay type with
public static void main(String[] args)
Implementor overlay implements method
Overrides Overlay overrides method
Focus Overlay type with focus in Type Hierarchy or Quick Outline/Hierarchy
Maximal Expansion Overlay maximal expansion level in Call Hierarchy
Recursive Overlay recursive call in Call Hierarchy
Abstract Compilation Unit compilation unit containing an abstract class as primary type
Interface Compilation Unit compilation unit containing an interface as primary type
Enum Compilation Unit compilation unit containing an enum as primary type
Annotation Compilation Unit compilation unit containing an annotation as primary type

Build path

class path variable class path variable
JAR with attached source JAR with attached source
JAR without attached source JAR without attached source
system library system library
build path ordering build path ordering
inclusion filter inclusion filter
exclusion filter exclusion filter
access rules access rules
Javadoc location Javadoc location
source attachment source attachment
native library location native library location
output folder output folder

Code assist

HTML tag HTML tag
Javadoc tag Javadoc tag
local variable local variable
template template
SWT template SWT template

Compare

field field
method method

Debugger

debug launch debug launch
run launch run launch
terminated run launch terminated run launch
process process
terminated process terminated process
debug target debug target
suspended debug target suspended debug target
terminated debug target terminated debug target
thread thread
suspended thread suspended thread
stack frame stack frame
running stack frame running stack frame
adornment that marks a stack frame that may be out of synch with the target VM as a result of an unsuccessful hot code replace adornment that marks a stack frame that may be out of synch with the target VM as a result of an unsuccessful hot code replace
adornment that marks a stack frame that is out of synch with the target VM as a result of an unsuccessful hot code replace adornment that marks a stack frame that is out of synch with the target VM as a result of an unsuccessful hot code replace
adornment that marks a stack frame that may be out of synch with the target VM as a result of an unsuccessful hot code replace inspected object or primitive value
evaluated expression watch expression
local variable local variable
monitor monitor
a monitor in contention a monitor in contention
in thread in contention for a monitor a thread in contention for a monitor
a monitor that is owned by a thread a monitor that is owned by a thread
a thread that owns a monitor a thread that owns a monitor
current instruction pointer (top of stack) current instruction pointer (top of stack)
current instruction pointer current instruction pointer
enabled line breakpoint enabled line breakpoint
disabled line breakpoint disabled line breakpoint
adornment that marks a breakpoint as skipped adornment that marks a breakpoint as skipped
adornment that marks a line breakpoint as installed adornment that marks a line breakpoint as installed
adornment that marks a breakpoint as conditional adornment that marks a breakpoint as conditional
adornment that marks an entry method breakpoint adornment that marks an entry method breakpoint
adornment that marks an exit method breakpoint adornment that marks an exit method breakpoint
field access watchpoint field access watchpoint
field modification watchpoint field modification watchpoint
field access and modification watchpoint field access and modification watchpoint
adornment that marks a watchpoint as installed adornment that marks a watchpoint as installed
exception breakpoint exception breakpoint
runtime exception breakpoint runtime exception breakpoint
disabled exception breakpoint disabled exception breakpoint
adornment that marks an exception breakpoint as caught adornment that marks an exception breakpoint as caught
adornment that marks an exception breakpoint as uncaught adornment that marks an exception breakpoint as uncaught
adornment that marks an exception breakpoint as scoped adornment that marks an exception breakpoint as scoped
adornment that marks an exception breakpoint as installed adornment that marks an exception breakpoint as installed

Editor

implements implements
overrides overrides
quick assist available quick assist available
search match search match

JUnit

test test
currently running test currently running test
successful test successful test
failing test failing test
test throwing an exception test throwing an exception
ignored test ignored test
test with an assumption failure test with an assumption failure
test suite test suite
currently running test suite currently running test suite
successfully completed test suite successfully completed test suite
test suite with failing test test suite with failing test
test suite with exception throwing test test suite with exception throwing test
caught exception caught exception
stack frame element stack frame element

NLS tools

skipped NLS key skipped NLS key
translated NLS key translated NLS key
untranslated NLS key untranslated NLS key

Quick fix

quick fixable error quick fixable error
quick fixable warning quick fixable warning
add add
change change
change cast change cast
fix multiple problems fix multiple problems
move to another package move to another package
remove remove
remove import remove import
rename rename
rename in file rename in file
surround with try/catch surround with try/catch

Refactoring

general change general change
composite change composite change
text change text change
file change file change
Stop error Stop error
Error Error
Warning Warning
Information Information
Information Change filter

Search

Java Search Java Search
search for declarations search for declarations
search for references search for references

Search - Occurrences in File

general match a general match
read access to local or field read access to local or field
write access to local or field write access to local or field

Type Hierarchy view

type outside of selected package type outside of selected package
interface outside of selected package interface outside of selected package