return query.getLabel() + " - " + matchCount + " " + occurrences + " in " + scope
+ ".";
}
private String getOccurrencesLabel(final int matchCount) {
final LimitTo limitTo = query.getPattern().getLimitTo();
switch (limitTo) {
case ALL_OCCURRENCES:
return matchCount == 1 ? "occurrence" : "occurrences";
case DEFINITIONS:
return matchCount == 1 ? "definition" : "definitions";