aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2011-11-15 13:45:15 (EST)
committerOleg Besedin2011-11-15 13:45:15 (EST)
commit95d1f553b358670f6edd0db7aec66dc736fb3724 (patch)
tree2c77115951f35d691dac78404259bd854882db6d
parentd6709d67620716c0eb872bd732d49cbc1d79662f (diff)
downloadeclipse.platform.ui-95d1f553b358670f6edd0db7aec66dc736fb3724.zip
eclipse.platform.ui-95d1f553b358670f6edd0db7aec66dc736fb3724.tar.gz
eclipse.platform.ui-95d1f553b358670f6edd0db7aec66dc736fb3724.tar.bz2
Bug 186404 - [Viewers] Update PatternFilter API to allow extensions
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/PatternFilter.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/PatternFilter.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/PatternFilter.java
index 2c43b5c..184ae1a 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/PatternFilter.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/dialogs/PatternFilter.java
@@ -11,11 +11,11 @@
*******************************************************************************/
package org.eclipse.ui.dialogs;
+import com.ibm.icu.text.BreakIterator;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-
import org.eclipse.jface.viewers.AbstractTreeViewer;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ITreeContentProvider;
@@ -24,8 +24,6 @@ import org.eclipse.jface.viewers.Viewer;
import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.ui.internal.misc.StringMatcher;
-import com.ibm.icu.text.BreakIterator;
-
/**
* A filter used in conjunction with <code>FilteredTree</code>. In order to
* determine if a node should be filtered it uses the content and label provider
@@ -45,14 +43,14 @@ public class PatternFilter extends ViewerFilter {
/**
* Maps parent elements to TRUE or FALSE
*
- * @since 3.8
+ * @since 3.103
*/
protected Map foundAnyCache = new HashMap();
/**
* Specifies if caching of filter results should be used.
*
- * @since 3.8
+ * @since 3.103
*/
protected boolean useCache = false;
@@ -98,7 +96,7 @@ public class PatternFilter extends ViewerFilter {
* @param elements
* the elements to filter
* @return the filtered elements
- * @since 3.8
+ * @since 3.103
*/
protected Object[] doFilter(Viewer viewer, Object parent, Object[] elements) {
Object[] filtered = (Object[]) cache.get(parent);