@Override public boolean encloses(IJavaElement element) { for (int i = 0; i < nbrScopes; i++) { if (subScopes[i].encloses(element)) return true; } return false; }
@Override public boolean encloses(String resourcePath) { for (int i = 0; i < nbrScopes; i++) { if (subScopes[i].encloses(resourcePath)) { return true; } } if (!resourcePath.startsWith("C:\\p\\j")) System.out.println(MessageFormat.format(" FALSE encloses resourcepath: ''{0}''", new Object[] { resourcePath })); return false; }
private boolean matchesScope(TypeNameMatch type) { if (fIsWorkspaceScope) return true; return fSearchScope.encloses(type.getType()); }
protected boolean encloses(IJavaElement element) { if (element != null) { if (this.scope instanceof HierarchyScope) return ((HierarchyScope)this.scope).encloses(element, this.progressMonitor); else return this.scope.encloses(element); } return false; } private boolean filterEnum(SearchMatch match) {
private boolean matchesScope(TypeNameMatch type) { if (fIsWorkspaceScope) return true; return fScope.encloses(type.getType()); }
private boolean isIgnoredBySearchScope(IMethod enclosingElement) { if (enclosingElement != null) { return !getSearchScope().encloses(enclosingElement); } else { return false; } }
protected boolean encloses(IJavaElement element) { if (element != null) { if (this.scope instanceof HierarchyScope) return ((HierarchyScope)this.scope).encloses(element, this.progressMonitor); else return this.scope.encloses(element); } return false; } private boolean filterEnum(SearchMatch match) {
protected boolean encloses(IJavaElement element) { if (element != null) { if (this.scope instanceof HierarchyScope) return ((HierarchyScope)this.scope).encloses(element, this.progressMonitor); else return this.scope.encloses(element); } return false; } private boolean filterEnum(SearchMatch match) {
private boolean isIgnoredBySearchScope(IMethod enclosingElement) { if (enclosingElement != null) { return !getSearchScope().encloses(enclosingElement); } else { return false; } }
protected boolean encloses(IJavaElement element) { if (element != null) { if (this.scope instanceof HierarchyScope) return ((HierarchyScope)this.scope).encloses(element, this.progressMonitor); else return this.scope.encloses(element); } return false; } private boolean filterEnum(SearchMatch match) {
private boolean matchesScope(TypeNameMatch type) { if (fIsWorkspaceScope) return true; return fSearchScope.encloses(type.getType()); }
private boolean isIgnoredBySearchScope(IMethod enclosingElement) { if (enclosingElement != null) { return !getSearchScope().encloses(enclosingElement); } else { return false; } }
protected boolean encloses(IJavaElement element) { if (element != null) { if (this.scope instanceof HierarchyScope) return ((HierarchyScope)this.scope).encloses(element, this.progressMonitor); else return this.scope.encloses(element); } return false; } private boolean filterEnum(SearchMatch match) {
private boolean matchesScope(TypeNameMatch type) { if (fIsWorkspaceScope) return true; return fSearchScope.encloses(type.getType()); }
protected boolean encloses(IJavaElement element) { if (element != null) { if (this.scope instanceof HierarchyScope) return ((HierarchyScope)this.scope).encloses(element, this.progressMonitor); else return this.scope.encloses(element); } return false; } private boolean filterEnum(SearchMatch match) {
@Override public boolean encloses(String resourcePathString) { int separatorIndex = resourcePathString.indexOf(JAR_FILE_ENTRY_SEPARATOR); if (separatorIndex != -1) { // Files within jar files would have been indexed return false; } // Jar files themselves would have been indexed if (isJarFile(resourcePathString)) { return false; } // Consult with the search scope return this.searchScope.encloses(resourcePathString); }
@Override public boolean encloses(String resourcePathString) { int separatorIndex = resourcePathString.indexOf(JAR_FILE_ENTRY_SEPARATOR); if (separatorIndex != -1) { // Files within jar files would have been indexed return false; } // Jar files themselves would have been indexed if (isJarFile(resourcePathString)) { return false; } // Consult with the search scope return this.searchScope.encloses(resourcePathString); }
/** * Search a JDT IPackageFragment for runnable aspects if included in the * scope. * * @param scope - * search scope * @param packageFragment - * the IPackageFragment * @throws JavaModelException */ private List searchPackage(IJavaSearchScope scope, IPackageFragment packageFragment) throws JavaModelException { List aspectsFound = new ArrayList(); if (scope.encloses(packageFragment)) { Set aspects = getAllAspects(packageFragment); aspectsFound.addAll(aspects); } else { aspectsFound.addAll(searchUnitsInPackage(scope, packageFragment)); } return aspectsFound; }
@Override public boolean encloses(IJavaElement element) { try { IResource underlyingResource = element.getUnderlyingResource(); if (underlyingResource != null && isJarFile(underlyingResource.getName())) { return false; } } catch (JavaModelException e) { JavaCore.getPlugin().getLog().log(e.getStatus()); } return this.searchScope.encloses(element); }
@Override public boolean encloses(IJavaElement element) { try { IResource underlyingResource = element.getUnderlyingResource(); if (underlyingResource != null && isJarFile(underlyingResource.getName())) { return false; } } catch (JavaModelException e) { JavaCore.getPlugin().getLog().log(e.getStatus()); } return this.searchScope.encloses(element); }