Bug 334742

Summary: [breadcrumb] should never hide project and package information
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P4 CC: daniel_megert, markus.kell.r
Version: 3.7   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
screenshot none

Description Deepak Azad CLA 2011-01-19 03:46:49 EST
Created attachment 187080 [details]
screenshot

The class name is visible in the editor tab, and you obviously know in which method/field you are in. What you do *not* know is the project and package information. (see screenshot)

It would be nice if in case of lack of space instead of the leading part, the trailing part of the breadcrumb is hidden. 

...at the very least there should be a preference to control this behavior.
Comment 1 Markus Keller CLA 2011-05-24 13:00:17 EDT
I agree that the class name is redundant in this case and could be compressed. But the current member is not always visible in the editor (think of a method or Javadoc that spans more than one page), so this info should stay.

The project is already visible in the workbench window title. The package and the file name are also there, but harder to parse.

Order of importance is IMO:
- enclosing members (except for main type in file)
- package
- project
- main type
- source folder / JAR / class folder

That's quite a jumpy list, and I'm sure others have other priorities. A separate preference page would also be overkill. But we could allow the user to set priorities in-place, e.g. by adding a context menu to the triangles or via drag-and-drop. The category of the last item that the user expanded/collapsed could be stored as the most/least important category (thus decreasing importance of the other categories).
Comment 2 Dani Megert CLA 2011-05-25 04:49:19 EDT
I personally never had an issue with that so far, but I'm working with a maximized workbench window and the Java Browsing perspective which gives the entire width to the editor.