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

Bug 115242

Summary: Package-explorer is missing an option to show separate icons for different types
Product: [Eclipse Project] JDT Reporter: AM <amannis>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: akiezun, ed.burnette
Version: 3.2   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description AM CLA 2005-11-06 11:23:21 EST
In package-explorer, for every Java-file there's the [J]-icon that doesn't tell 
anything about the type of Java-class. There should be separate icons for 
(abstract/final/concrete) classes, interfaces and enums - just like the Types-
view has. It would be very useful to be able to just glance the type from the 
icon instead of having to press the expand button to see if a file is an 
interface or not - for example.

I guess the proper place for the setting would be Preferences -> Java -> 
Appearance and the name of option something like "Show Types in Package Explorer
"?
Comment 1 Adam Kiezun CLA 2005-11-06 17:48:56 EST
what if there're more than 1 class in a file?
Comment 2 Martin Aeschlimann CLA 2005-11-07 09:39:47 EST

*** This bug has been marked as a duplicate of 111885 ***
Comment 3 Ed Burnette CLA 2005-11-07 09:46:01 EST
I don't think it's a duplicate of bug 111885. The way I understood the request
(see http://www.eclipsezone.com/eclipse/forums/t53714.html) is that they wanted
kind of a mix between the types view and the Package Explorer view. Instead of
seeing files under packages, you'd see types under packages. No files would be
visible, as if that level of the tree were cut out. So it's not a request to
decorate the file icons, but to leave them out altogether.
Comment 4 AM CLA 2005-11-07 11:20:56 EST
Yes that's how it's best thought. There could be a button at the top of the 
package explorer that quickly switches between file- and type-level views (or 
just a setting like "Do not show file-level in package explorer"). When in type-
view, all the classes inside java-files (except inner/nested classes of course) 
would be added to package explorer as and individual elements.

Another advantage of this would be that it makes possible to sort the classes 
by type too, instead of just alphabetically. Ideally the sorting order would be 
customizable.