/** * Returns if we should add the given component to our search scope * @param component * @param pattern * @param allowresolve * @return * @throws CoreException */ boolean acceptComponent(IApiComponent component, Pattern pattern, boolean allowresolve) throws CoreException { if(!allowresolve) { ResolverError[] errors = component.getErrors(); if(errors != null) { this.notsearched.add(new SkippedComponent(component.getSymbolicName(), component.getVersion(), errors)); return false; } } if(component.isSystemComponent()) { return false; } if(pattern != null) { return pattern.matcher(component.getSymbolicName()).matches(); } return true; }
/** * Returns if we should add the given component to our search scope * * @param component * @param pattern * @param allowresolve * @return * @throws CoreException */ boolean acceptComponent(IApiComponent component, Pattern pattern, boolean allowresolve) throws CoreException { if (!allowresolve) { ResolverError[] errors = component.getErrors(); if (errors != null) { this.notsearched.add(new SkippedComponent(component.getSymbolicName(), component.getVersion(), errors)); return false; } } if (component.isSystemComponent()) { return false; } if (pattern != null) { return pattern.matcher(component.getSymbolicName()).matches(); } return true; }
} else { localmonitor.subTask(NLS.bind(Messages.ApiUseScanJob_skipping_component, component.getSymbolicName())); this.notsearched.add(new SkippedComponent(component.getSymbolicName(), component.getVersion(), null));
this.notsearched.add(new SkippedComponent(component.getSymbolicName(), component.getVersion(), null));