diff options
author | Thomas Wolf | 2020-05-22 11:53:48 +0000 |
---|---|---|
committer | Thomas Wolf | 2020-07-05 10:16:04 +0000 |
commit | 4a9d4f8238fe335f2c71e1f3d9cc9e6ed174eccb (patch) | |
tree | b6576a0eb8ff7b6b1e6298e84ac87bc5517a8e5b | |
parent | a6b27ba62d0ca1feab6e6ac684be13d0e39ff874 (diff) | |
download | rt.equinox.p2-4a9d4f8238fe335f2c71e1f3d9cc9e6ed174eccb.tar.gz rt.equinox.p2-4a9d4f8238fe335f2c71e1f3d9cc9e6ed174eccb.tar.xz rt.equinox.p2-4a9d4f8238fe335f2c71e1f3d9cc9e6ed174eccb.zip |
Bug 563485 - Use TextMatcher instead of StringMatcherY20200716-0820Y20200715-1200Y20200711-1200I20200716-1800I20200715-1800I20200714-1800I20200713-2230I20200713-1800I20200712-1800I20200711-2250I20200711-1800I20200710-1800
TextMatcher is a newer and leaner re-implementation of StringMatcher
providing exactly the same functionality. TextMatcher can be used as
a drop-in replacement; StringMatcher will be removed once this
replacement is done.
Note that both StringMatcher and TextMatcher are *internal* classes
in org.eclipse.ui.workbench and are available here via the re-export
in org.eclipse.ui.
Change-Id: I4d2f88ce8ad7eebd6a69e6921e72d2c457686667
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
5 files changed, 8 insertions, 8 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui.discovery/META-INF/MANIFEST.MF b/bundles/org.eclipse.equinox.p2.ui.discovery/META-INF/MANIFEST.MF index 12c0d2aaf..cfc2fc301 100644 --- a/bundles/org.eclipse.equinox.p2.ui.discovery/META-INF/MANIFEST.MF +++ b/bundles/org.eclipse.equinox.p2.ui.discovery/META-INF/MANIFEST.MF @@ -2,12 +2,12 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %Bundle-Name Bundle-SymbolicName: org.eclipse.equinox.p2.ui.discovery;singleton:=true -Bundle-Version: 1.1.500.qualifier +Bundle-Version: 1.1.600.qualifier Bundle-Vendor: %Bundle-Vendor Bundle-Localization: plugin Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Require-Bundle: org.eclipse.core.runtime, - org.eclipse.ui, + org.eclipse.ui;bundle-version="[3.118.0,4.0.0)", org.eclipse.equinox.p2.discovery;bundle-version="[1.0.0,1.2.0)", org.eclipse.ui.browser, org.eclipse.equinox.p2.discovery.compatibility;bundle-version="[1.0.0,1.2.0)";resolution:=optional, diff --git a/bundles/org.eclipse.equinox.p2.ui.discovery/pom.xml b/bundles/org.eclipse.equinox.p2.ui.discovery/pom.xml index bd0f7734c..cf4387501 100644 --- a/bundles/org.eclipse.equinox.p2.ui.discovery/pom.xml +++ b/bundles/org.eclipse.equinox.p2.ui.discovery/pom.xml @@ -9,6 +9,6 @@ </parent> <groupId>org.eclipse.equinox</groupId> <artifactId>org.eclipse.equinox.p2.ui.discovery</artifactId> - <version>1.1.500-SNAPSHOT</version> + <version>1.1.600-SNAPSHOT</version> <packaging>eclipse-plugin</packaging> </project> diff --git a/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/PatternFilter.java b/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/PatternFilter.java index eb2994052..4b4ca6f23 100644 --- a/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/PatternFilter.java +++ b/bundles/org.eclipse.equinox.p2.ui.discovery/src/org/eclipse/equinox/internal/p2/ui/discovery/util/PatternFilter.java @@ -18,7 +18,7 @@ import java.util.HashMap; import java.util.Map; import java.util.regex.Pattern; import org.eclipse.jface.viewers.*; -import org.eclipse.ui.internal.misc.StringMatcher; +import org.eclipse.ui.internal.misc.TextMatcher; /** * A filter used in conjunction with <code>FilteredTree</code>. In order to @@ -53,7 +53,7 @@ public class PatternFilter extends ViewerFilter { /** * The string pattern matcher used for this pattern filter. */ - private StringMatcher matcher; + private TextMatcher matcher; private boolean useEarlyReturnIfMatcherIsNull = true; @@ -171,7 +171,7 @@ public class PatternFilter extends ViewerFilter { if (includeLeadingWildcard) { pattern = "*" + pattern; //$NON-NLS-1$ } - matcher = new StringMatcher(pattern, true, false); + matcher = new TextMatcher(pattern, true, false); } } diff --git a/features/org.eclipse.equinox.p2.discovery.feature/feature.xml b/features/org.eclipse.equinox.p2.discovery.feature/feature.xml index 1a6b4e659..4d3031220 100644 --- a/features/org.eclipse.equinox.p2.discovery.feature/feature.xml +++ b/features/org.eclipse.equinox.p2.discovery.feature/feature.xml @@ -2,7 +2,7 @@ <feature id="org.eclipse.equinox.p2.discovery.feature" label="%featureName" - version="1.2.600.qualifier" + version="1.2.700.qualifier" provider-name="%providerName" license-feature="org.eclipse.license" license-feature-version="0.0.0"> diff --git a/features/org.eclipse.equinox.p2.discovery.feature/pom.xml b/features/org.eclipse.equinox.p2.discovery.feature/pom.xml index b584b0e92..54d15be0f 100644 --- a/features/org.eclipse.equinox.p2.discovery.feature/pom.xml +++ b/features/org.eclipse.equinox.p2.discovery.feature/pom.xml @@ -19,7 +19,7 @@ </parent> <groupId>org.eclipse.equinox</groupId> <artifactId>org.eclipse.equinox.p2.discovery.feature</artifactId> - <version>1.2.600-SNAPSHOT</version> + <version>1.2.700-SNAPSHOT</version> <packaging>eclipse-feature</packaging> <build> |