wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes How to distinguish files in the package explorer of Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "How to distinguish files in the package explorer of Eclipse" Watch "How to distinguish files in the package explorer of Eclipse" New topic
Author

How to distinguish files in the package explorer of Eclipse

Andreas Groscurth
Greenhorn

Joined: Mar 08, 2004
Posts: 12
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Andreas Groscurth
Greenhorn

Joined: Mar 08, 2004
Posts: 12
thats an idea - thanks for the expand hint..

Eclipse 3.1M3 suppurts Java 5 quite good
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
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...


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Andreas Groscurth
Greenhorn

Joined: Mar 08, 2004
Posts: 12
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Originally posted by Andreas Groscurth:
Eclipse 3.1M3 suppurts Java 5 quite good

Cool. I'll need to download it and try it out!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to distinguish files in the package explorer of Eclipse
 
Similar Threads
Question regarding Eclipse
can java reflect .java files...
NoClassDefFoundError
eclipse: Unable to open class with Capital prefix
How to get Eclipse working with my bunch of .java and .class files?