• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to distinguish files in the package explorer of Eclipse

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thats an idea - thanks for the expand hint..

Eclipse 3.1M3 suppurts Java 5 quite good
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic