public TypeInfoFilter(String text, IJavaSearchScope scope, int elementKind, ITypeInfoFilterExtension extension) { fText= text; fSearchScope= scope; fIsWorkspaceScope= fSearchScope.equals(SearchEngine.createWorkspaceScope()); fElementKind= elementKind; fFilterExtension= extension; int index= text.lastIndexOf("."); //$NON-NLS-1$ if (index == -1) { fNameMatcher= new PatternMatcher(text); fPackageMatcher= null; } else { fPackageMatcher= new PatternMatcher(evaluatePackagePattern(text.substring(0, index))); String name= text.substring(index + 1); if (name.length() == 0) name= "*"; //$NON-NLS-1$ fNameMatcher= new PatternMatcher(name); } }
public TypeInfoFilter(String text, IJavaSearchScope scope, int elementKind, ITypeInfoFilterExtension extension) { fText= text; fSearchScope= scope; fIsWorkspaceScope= fSearchScope.equals(SearchEngine.createWorkspaceScope()); fElementKind= elementKind; fFilterExtension= extension; int index= text.lastIndexOf("."); //$NON-NLS-1$ if (index == -1) { fNameMatcher= new PatternMatcher(text, true); } else { fPackageMatcher= new PatternMatcher(evaluatePackagePattern(text.substring(0, index)), true); String name= text.substring(index + 1); if (name.length() == 0) name= "*"; //$NON-NLS-1$ fNameMatcher= new PatternMatcher(name, true); } }
public TypeInfoFilter(String text, IJavaSearchScope scope, int elementKind, ITypeInfoFilterExtension extension) { fText= text; fSearchScope= scope; fIsWorkspaceScope= fSearchScope.equals(SearchEngine.createWorkspaceScope()); fElementKind= elementKind; fFilterExtension= extension; int index= text.lastIndexOf("."); //$NON-NLS-1$ if (index == -1) { fNameMatcher= new PatternMatcher(text); fPackageMatcher= null; } else { fPackageMatcher= new PatternMatcher(evaluatePackagePattern(text.substring(0, index))); String name= text.substring(index + 1); if (name.length() == 0) name= "*"; //$NON-NLS-1$ fNameMatcher= new PatternMatcher(name); } }