Eclipse 各種小圖示的含義
阿新 • • 發佈:2018-12-20
Eclipse的Package Explorer和Outline中用圖標表示了很多內容,其實能看懂這些圖示在程式設計中也是很有用的。
綠色的小圓表示公有型別:如果是實心的就是函式(),如果是圈就表示是變數()。
紅色的矩形表示私有型別:如果是實心的就是函式(),如果是空心就表示是變數()。
保護類與保護函式用的是黃色的菱形:大菱形表示是函式(),小菱形表示是變數()。
如果有一個向上的小三角就表示這是個函式,並且會丟擲異常。()
如果有一個類似表型的圓圈就表示該變數或函式是synchronized(執行緒同步)。()
如果小圖標出現一個C,就表示這是建構函式(
如果小圖標出現一個A,就表示這是抽象函式(abstract)()。
如果小圖標出現一個F,就表示這是抽象函式(final)。()
如果小圖標出現一個S,就表示這是靜態函式(static)()
類的圖示是一個大C,表示一個類(),如果帶一個放音鍵似的三角,那就代表這個類是存在main函式的類()
Objects
compilation unit (*.java file) | |
Java file which is not on a build path | |
class file | |
generic file (unknown content type) | |
unknown object | |
Java scrapbook page (*.jpage file) | |
Java scrapbook page (evaluation in progress) | |
JAR description file | |
JUnit test result file | |
Java working set | |
Java model | |
library container | |
JAR file with attached source | |
JAR file without attached source | |
class folder with attached source | |
class folder without attached source | |
source folder | |
package | |
empty package | |
logical package | |
empty logical package | |
package only containing non Java resources | |
package declaration | |
import container | |
import | |
class (public) | |
interface (public) | |
enum type (public) | |
annotation type (public) | |
package visible class | |
private class | |
protected class | |
default field (package visible) | |
private field | |
protected field | |
public field | |
default method (package visible) | |
private method | |
protected method | |
public method |
Object adornments
marks project as Java project | |
decorates files and folders if they are on the build path of their enclosing Java project | |
decorates Java projects and working sets that contain build path errors | |
this Java element causes an error | |
this Java element causes a warning | |
this Java element is deprecated | |
constructor | |
abstract member | |
final member | |
static member | |
default method | |
synchronized member | |
native method | |
transient field | |
volatile field | |
type with public static void main(String[] args) |
|
implements method | |
overrides method | |
type with focus in Type Hierarchy or Quick Outline/Hierarchy | |
maximal expansion level in Call Hierarchy | |
recursive call in Call Hierarchy | |
compilation unit containing an abstract class as primary type | |
compilation unit containing an interface as primary type | |
compilation unit containing an enum as primary type | |
compilation unit containing an annotation as primary type |
Build path
class path variable | |
JAR with attached source | |
JAR without attached source | |
system library | |
build path ordering | |
inclusion filter | |
exclusion filter | |
access rules | |
Javadoc location | |
source attachment | |
native library location | |
output folder |
Code assist
HTML tag | |
Javadoc tag | |
local variable | |
template | |
SWT template |
Compare
field | |
method |
Debugger
debug launch | |
run launch | |
terminated run launch | |
process | |
terminated process | |
debug target | |
suspended debug target | |
terminated debug target | |
thread | |
suspended thread | |
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 is out of synch with the target VM as a result of an unsuccessful hot code replace | |
inspected object or primitive value | |
watch expression | |
local variable | |
monitor | |
a monitor in contention | |
a thread in contention for a monitor | |
a monitor that is owned by a thread | |
a thread that owns a monitor | |
current instruction pointer (top of stack) | |
current instruction pointer | |
enabled line breakpoint | |
disabled line breakpoint | |
adornment that marks a breakpoint as skipped | |
adornment that marks a line breakpoint as installed | |
adornment that marks a breakpoint as conditional | |
adornment that marks an entry method breakpoint | |
adornment that marks an exit method breakpoint | |
field access watchpoint | |
field modification watchpoint | |
field access and modification watchpoint | |
adornment that marks a watchpoint as installed | |
exception breakpoint | |
runtime exception breakpoint | |
disabled exception breakpoint | |
adornment that marks an exception breakpoint as caught | |
adornment that marks an exception breakpoint as uncaught | |
adornment that marks an exception breakpoint as scoped | |
adornment that marks an exception breakpoint as installed |
Editor
implements | |
overrides | |
quick assist available | |
search match |
JUnit
test | |
currently running test | |
successful test | |
failing test | |
test throwing an exception | |
ignored test | |
test with an assumption failure | |
test suite | |
currently running test suite | |
successfully completed test suite | |
test suite with failing test | |
test suite with exception throwing test | |
caught exception | |
stack frame element |
NLS tools
skipped NLS key | |
translated NLS key | |
untranslated NLS key |
Quick fix
quick fixable error | |
quick fixable warning | |
add | |
change | |
change cast | |
fix multiple problems | |
move to another package | |
remove | |
remove import | |
rename | |
rename in file | |
surround with try/catch |
Refactoring
general change | |
composite change | |
text change | |
file change | |
Stop error | |
Error | |
Warning | |
Information | |
Change filter |
Search
Java Search | |
search for declarations | |
search for references |
Search - Occurrences in File
a general match | |
read access to local or field | |
write access to local or field |
Type Hierarchy view
type outside of selected package | |
interface outside of selected package |