}
return new StyledString("???");
}
protected StyledString getCellText(GeneralMatchingFilter filter) {
StyledString ss = new StyledString();
ss.append("Filters ", defaultStyler);
if (!filter.isUsesMatchText()) {
ss.append("all ", defaultStyler);
}
switch (filter.getMatchType()) {
case ALL_ITEMS:
ss.append("Files and Folders ", matchTypeStyler);
break;
case FILE:
ss.append("Files ", matchTypeStyler);
break;
case FOLDER:
ss.append("Folders ", matchTypeStyler);
break;
}
if (filter.isUsesMatchText()) {
ss.append("whose names ", defaultStyler);
if (filter.isUsesRegex()) {
ss.append("match the pattern ", defaultStyler);
} else {
ss.append("contain ", defaultStyler);
}
ss.append(filter.getMatchText(), filter.isUsesRegex() ? matchRegexStyler : matchTextStyler);
}
if (filter.isCaseSensitive()) {
ss.append(" (case sensitive)", afterthoughtStyler);
}
return ss;
}