Project: JDT
Bug 29846 Package Explorer shows leading slash in status line for resource files
Reported: 2003-01-20 16:27:33 | Status: resolved fixed

build I20030115 - load org.eclipse.jface as source - in the Package Explorer, select org.eclipse.jface/src - the status line shows: org.eclipse.jface/src - select org.eclipse.jface/scripts - the status line shows: /org.eclipse.jface/scripts - select org.eclipse.jface/src/org.eclipse.jface.action/Action.java - the status line shows: org.eclipse.jface.action.Action.java - org.eclipse.jface/src - select org.eclipse.jface/src/org.eclipse.jface.action/package.html - the status line shows: /org.eclipse.jface/src/org/eclipse/jface/action/package.html Leading slashes should be omitted. We generally try to avoid using leading slashes in the UI. Compare with the Navigator. Also, note that using / to separate segments in package names leads to an inconsistency with what is presented in the view. The view shows "org.eclipse.jface.action" but the status line shows "org/eclipse/jface/action". Could still follow the same format as for Java files, showing pkg.file - srcFolder. e.g. org.eclipse.jface.action.messages.properties - org.eclipse.jface/src or: messages.properties - org.eclipse.jface.action - org.eclipse.jface/src

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/StatusBarUpdater.java