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
/*
 * (c) Copyright IBM Corp. 2000, 2001.
 * All Rights Reserved.
 */
package org.eclipse.jdt.internal.ui.search;
import org.eclipse.core.resources.IMarker;
import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.viewers.DecoratingLabelProvider;
import org.eclipse.ui.PlatformUI;
import org.eclipse.search.ui.ISearchResultViewEntry;
import org.eclipse.search.ui.SearchUI;
import org.eclipse.jdt.core.IImportDeclaration;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.internal.ui.viewsupport.AppearanceAwareLabelProvider;
import org.eclipse.jdt.internal.ui.viewsupport.JavaElementLabels;
public class JavaSearchResultLabelProvider extends DecoratingLabelProvider {