Bug 171099 [Sync View] Java content provider provides wrong label for folder
When view a resource project (i.e. non-Java) in the Sync view when using compressed folder, the Java content provider is somehow asked to provide a label and only provides a single segment instead of the project relative path. This is probably related to the use of pipelining (i.e. I recall that pipelining prevented the CN framework from being able to determine the proper model to ask for the label.
bundles/org.eclipse.jface/src/org/eclipse/jface/viewers/WrappedViewerLabelProvider.java
if (!label.hasNewForeground() && colorProvider != null) 
			label.setForeground(getForeground(cell.getElement()));
		
		if (!label.hasNewBackground() && colorProvider != null) 
			label.setBackground(getBackground(cell.getElement()));
		
		if (!label.hasNewFont() && fontProvider != null) 
			label.setFont(getFont(cell.getElement()));
		
		applyViewerLabel(cell, label);
	}
	private void applyViewerLabel(ViewerCell cell, ViewerLabel label) {
		if (label.hasNewText()) {
			cell.setText(label.getText());
		}
		if (label.hasNewImage()) {
			cell.setImage(label.getImage());
		}
		if (colorProvider!= null || label.hasNewBackground()) {
			cell.setBackground(label.getBackground());
		}
		if (colorProvider!= null || label.hasNewForeground()) {
			cell.setForeground(label.getForeground());
		}
		if (fontProvider!= null || label.hasNewFont()) {
			cell.setFont(label.getFont());
		}
	}
}