Project: JDT
Bug 233374 [search] styled label not supported by search participant's label provider
Reported: 2008-05-21 23:00:21 | Status: verified fixed

Wouldn't it be nice if Java search query participants' results were colored just the same as those returned by the Java search proper? Currently IMatchPresentation's createLabelProvider returns an ILabelProvider, which the code uses as is. With a few small changes the code could check if that label provider implements IStyledLabelProvider and use it to get colored labels.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/PostfixLabelProvider.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SearchLabelProvider.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/SortingLabelProvider.java