viewerFilters.remove(fPatternFilter);
} else if (!viewerFilters.contains(fPatternFilter)) {
boolean contains = false;
for (int i = 0; i < viewerFilters.size(); i++) {
if (viewerFilters.get(i) instanceof OutlineNamePatternFilter) {
OutlineNamePatternFilter filter = (OutlineNamePatternFilter) viewerFilters.get(i);
String[] a1 = filter.getPatterns();
String[] a2 = fPatternFilter.getPatterns();
if (a1[0].equals(a2[0]))
contains = true;
else {
viewerFilters.remove(i);