• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to distinguish files in the package explorer of Eclipse

 
Andreas Groscurth
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

does anybody know if its possible to change the icon for the java files in the Package Explorer of Eclipse. So that, e.g. an Interface or an Enum class is distinguishable from a "normal" java class (e.g. another icon instead of the default "J") ???

If so - how can I change that ?

Thx and cheers
deathbyaclown
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
377
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Andreas,
I don't know of a way to change that icon. If you click to expand (next to the icon), you do get the class or interface icon though. So Eclipse is aware of the file type.

Is there a version of Eclipse out that supports enums or was that a forward looking question?
 
Andreas Groscurth
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thats an idea - thanks for the expand hint..

Eclipse 3.1M3 suppurts Java 5 quite good
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is that Java allows more than one type to be declared inside a .java file (what Eclipse calls a "compilation unit"), so its "type" isn't necessarily unambiguous...
 
Andreas Groscurth
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm aware of that... but I would appreciate it if e.g. the first definition is taken as icon and the rest is shown if one extends it....
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34965
377
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Andreas Groscurth:
Eclipse 3.1M3 suppurts Java 5 quite good

Cool. I'll need to download it and try it out!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic