summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Bruch2012-11-28 14:10:13 (EST)
committer Sopot Cela2012-11-28 14:10:13 (EST)
commit57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292 (patch)
tree96a6c53a22be0f797a3e8ecf64141ec3090efc3f
parent8a35161d4bfc4221cd93317e8d1836e492be1b8d (diff)
downloadorg.eclipse.e4.tools-57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292.zip
org.eclipse.e4.tools-57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292.tar.gz
org.eclipse.e4.tools-57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292.tar.bz2
Bug 395297 - Find contribution class dialog does not support "*" at all
-rw-r--r--bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEClassContributionProvider.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEClassContributionProvider.java b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEClassContributionProvider.java
index 540d02b..4ba2573 100644
--- a/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEClassContributionProvider.java
+++ b/bundles/org.eclipse.e4.tools.emf.editor3x/src/org/eclipse/e4/tools/emf/editor3x/PDEClassContributionProvider.java
@@ -53,11 +53,11 @@ public class PDEClassContributionProvider implements IClassContributionProvider
// Perform the search only on the type name
typeName = currentContent.toCharArray();
if( currentContent.startsWith("*") ) {
- typeName = "".toCharArray();
if( ! currentContent.endsWith("*") ) {
currentContent += "*";
}
- packageName = currentContent.toCharArray();
+ typeName = currentContent.toCharArray();
+ packageName = "*".toCharArray();
}
} else if ((index + 1) == currentContent.length()) {
@@ -145,7 +145,7 @@ public class PDEClassContributionProvider implements IClassContributionProvider
packageName,
SearchPattern.R_PATTERN_MATCH,
typeName,
- SearchPattern.R_PREFIX_MATCH | SearchPattern.R_CAMELCASE_MATCH,
+ SearchPattern.R_PATTERN_MATCH | SearchPattern.R_CAMELCASE_MATCH,
IJavaSearchConstants.CLASS,
scope,
req,