Bug 4263 Error ticks should also cover search results (1GKPVSU) [search]
Search matches do not get decorated with red Xs, though it could be interesting to show. Indeed when dealing with a large set of errors, one way to navigate is through search operations. NOTES:
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 AppearanceAwareLabelProvider fLabelProvider;
	private ILabelDecorator fDecorator;
	
	
	private IMarker fLastMarker;
	private IJavaElement fLastJavaElement;
	public JavaSearchResultLabelProvider() {
		fDecorator= PlatformUI.getWorkbench().getDecoratorManager().getLabelDecorator();
		fLabelProvider= 
			new AppearanceAwareLabelProvider(
				AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS  | JavaElementLabels.P_COMPRESSED,
				AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS,
				null);
	}	
	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) {