Bug 13036 Search LabelProviders should not override getText()
Three search subclasses of DecoratingLabel Provider override getText and do not use the label provider. They are org.eclipse.search.internal.ui.util.FileLabelProvider org.eclipse.jdt.internal.ui.search.JavaSearchResultLabelProvider org.eclipse.search.internal.ui.SearchResultLabelProvider. As a result if DecoratinglabelProvider wishes to implement ICombinedLabelDecorator it cannot as it cannot rely on its subclasses to use their label providers. These special code should be moved to the label providers for these classes.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResultLabelProvider.java
public static final int SHOW_ELEMENT_CONTAINER= 1; 
	public static final int SHOW_CONTAINER_ELEMENT= 2;
	public static final int SHOW_PATH= 3;
	public static final String POTENTIAL_MATCH= SearchMessages.getString("JavaSearchResultLabelProvider.potentialMatch"); 
	
	
	private IMarker fLastMarker;
	private IJavaElement fLastJavaElement;
	public JavaSearchResultLabelProvider() {
		super(
			new AppearanceAwareLabelProvider(
				AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS,
				AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS,
				null)
			, null);
		setLabelDecorator(PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator());
	}	
	public String getText(Object o) {
		fLastMarker= null;
		IJavaElement javaElement= getJavaElement(o); 
		boolean isPotentialMatch= fLastMarker != null && fLastMarker.getAttribute(SearchUI.POTENTIAL_MATCH, false);
		if (javaElement == null) {
			if (fLastMarker != null) {
				if (isPotentialMatch)