// fLabelProvider.addListener(listener);
}
@Override
public StyledString getStyledText(final Object element) {
final StyledString result = new StyledString();
if (fOrder == SHOW_LABEL_PATH || element instanceof String && isInTree()) {
result.append(getElementText(element));
result.append(' ');
result.append(getMatchCountText(element));
result.append(" - ", StyledString.QUALIFIER_STYLER);
result.append(getPathText(element));
} else if (fOrder == SHOW_LABEL) {
result.append(getElementText(element));
result.append(' ');
result.append(getMatchCountText(element));
} else { // SHOW_PATH_LABEL
result.append(getElementText(element));
result.append(' ');
result.append(getMatchCountText(element));
result.append(" - ", StyledString.QUALIFIER_STYLER);
result.append(getPathText(element));
}
return result;
}