Bug 29846 Package Explorer shows leading slash in status line for resource files
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
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/StatusBarUpdater.java
private final int LABEL_FLAGS= JavaElementLabels.DEFAULT_QUALIFIED | JavaElementLabels.ROOT_POST_QUALIFIED | JavaElementLabels.APPEND_ROOT_PATH |
			JavaElementLabels.M_PARAMETER_TYPES | JavaElementLabels.M_PARAMETER_NAMES | JavaElementLabels.M_APP_RETURNTYPE | JavaElementLabels.M_EXCEPTIONS | 
		 	JavaElementLabels.F_APP_TYPE_SIGNATURE;
		 	
	private IStatusLineManager fStatusLineManager;
	
	public StatusBarUpdater(IStatusLineManager statusLineManager) {
		fStatusLineManager= statusLineManager;
	}
		
	/*
	 * @see ISelectionChangedListener#selectionChanged
	 */
	public void selectionChanged(SelectionChangedEvent event) {
		String statusBarMessage= formatMessage(event.getSelection());
		fStatusLineManager.setMessage(statusBarMessage);