--- org.eclipse.mylyn.commons/org.eclipse.mylyn.commons.workbench/src/org/eclipse/mylyn/commons/workbench/DecoratingPatternStyledCellLabelProvider.java.orig 2018-06-12 04:31:23.566937213 +0100
+++ org.eclipse.mylyn.commons/org.eclipse.mylyn.commons.workbench/src/org/eclipse/mylyn/commons/workbench/DecoratingPatternStyledCellLabelProvider.java 2018-06-12 04:32:19.363721771 +0100
@@ -34,7 +34,6 @@
import org.eclipse.ui.IWorkbenchPreferenceConstants;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.internal.misc.StringMatcher;
-import org.eclipse.ui.internal.misc.StringMatcher.Position;
/**
* A decorating styled label provider that supports highlighting of substrings that match a pattern. Based on
@@ -81,25 +80,7 @@
public StyledString getStyledText(Object element) {
StyledString styled = null;
String label = this.labelProvider.getText(element);
- if (matcher == null || label.length() == 0) {
styled = new StyledString(label);
- } else {
- styled = new StyledString();
- int start = 0;
- int end = 0;
- int length = label.length();
- Position position = matcher.find(label, start, length);
- while (position != null) {
- end = position.getStart();
- styled.append(label.substring(start, end));
- start = position.getEnd();
- styled.append(label.substring(end, start), HIGHLIGHT_STYLE);
- position = matcher.find(label, start, length);
- }
- if (start > 0 && start < length) {
- styled.append(label.substring(start));
- }
- }
return styled;
}