Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 117586

Summary: Option to replace "Java" file icon, with class declaration type icon
Product: [Eclipse Project] JDT Reporter: Wojtek Bok <bigguy>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Wojtek Bok CLA 2005-11-22 16:34:29 EST
In the Package Explorer view you get a tree view of packages. Within the packages are Java files. Within the Java files are the classes.

When viewing the tree view, the packages have a "package" icon. Within the package view, each Java file has a "Java" icon. However this icon does not indicate whether the declaration within the file is a class, abstract class, interface, etc. You need to expand the Java icon to see the type of declaration.

Is there some way to have the "Java" icon replaced by what is the declaration in the file? And in the case where there are nested classes, only the parent class type would be shown?

This would mean that expanding a package would then show the types of classes/interfaces at a single glance, without needing to open each Java file. As I remember, VisualAge for Java did this, and it was quite useful.
Comment 1 Kim Horne CLA 2005-11-23 08:55:19 EST
If we were still keying editor images based on content types this might be possible but I'm not sure how this could be done at the moment.  Passing to JDT.  If this is something JDT is interested in they can talk to us about the platform support.
Comment 2 Martin Aeschlimann CLA 2005-11-24 11:03:40 EST

*** This bug has been marked as a duplicate of 111885 ***