diff options
| author | Marcel Bruch | 2012-11-28 19:10:13 +0000 |
|---|---|---|
| committer | Sopot Cela | 2012-11-28 19:10:13 +0000 |
| commit | 57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292 (patch) | |
| tree | 96a6c53a22be0f797a3e8ecf64141ec3090efc3f | |
| parent | 8a35161d4bfc4221cd93317e8d1836e492be1b8d (diff) | |
| download | org.eclipse.e4.tools-57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292.tar.gz org.eclipse.e4.tools-57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292.tar.xz org.eclipse.e4.tools-57492f7ea0ae9ead6cb0eb2341a7cb2fe8870292.zip | |
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.java | 6 |
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 540d02b2..4ba2573e 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, |
