@Override protected boolean isExcluded(IResource resource) { if (this.exclusionPatterns != null || this.inclusionPatterns != null) if (this.sourceFolder.equals(this.binaryFolder)) return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns); return false; } @Override
protected boolean isExcluded(IResource resource) { if (this.exclusionPatterns != null || this.inclusionPatterns != null) if (this.sourceFolder.equals(this.binaryFolder)) return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns); return false; }
protected boolean isExcluded(IResource resource) { if (this.exclusionPatterns != null || this.inclusionPatterns != null) if (this.sourceFolder.equals(this.binaryFolder)) return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns); return false; }
protected boolean isExcluded(IResource resource) { if (this.exclusionPatterns != null || this.inclusionPatterns != null) if (this.sourceFolder.equals(this.binaryFolder)) return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns); return false; }
protected boolean isExcluded(IResource resource) { if (this.exclusionPatterns != null || this.inclusionPatterns != null) if (this.sourceFolder.equals(this.binaryFolder)) return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns); return false; }
protected boolean isExcluded(IResource resource) { if (this.exclusionPatterns != null || this.inclusionPatterns != null) if (this.sourceFolder.equals(this.binaryFolder)) return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns); return false; }
@Override public boolean exists() { // super.exist() only checks for the parent and the resource existence // so also ensure that: // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577) // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456) return super.exists() && !Util.isExcluded(this) && isValidPackageName(); } /**
public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) { IPath path = resource.getFullPath(); // ensure that folders are only excluded if all of their children are excluded int resourceType = resource.getType(); return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT); }
public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) { IPath path = resource.getFullPath(); // ensure that folders are only excluded if all of their children are excluded int resourceType = resource.getType(); return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT); }
public boolean exists() { // super.exist() only checks for the parent and the resource existence // so also ensure that: // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577) // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456) return super.exists() && !Util.isExcluded(this) && isValidPackageName(); } /**
public boolean exists() { // super.exist() only checks for the parent and the resource existence // so also ensure that: // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577) // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456) return super.exists() && !Util.isExcluded(this) && isValidPackageName(); } /**
public boolean exists() { // super.exist() only checks for the parent and the resource existence // so also ensure that: // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577) // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456) return super.exists() && !Util.isExcluded(this) && isValidPackageName(); } /**
public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) { IPath path = resource.getFullPath(); // ensure that folders are only excluded if all of their children are excluded int resourceType = resource.getType(); return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT); }
public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) { IPath path = resource.getFullPath(); // ensure that folders are only excluded if all of their children are excluded int resourceType = resource.getType(); return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT); }
public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) { IPath path = resource.getFullPath(); // ensure that folders are only excluded if all of their children are excluded int resourceType = resource.getType(); return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT); }
public boolean exists() { // super.exist() only checks for the parent and the resource existence // so also ensure that: // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577) // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456) return super.exists() && !Util.isExcluded(this) && isValidPackageName(); } /**
public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) { IPath path = resource.getFullPath(); // ensure that folders are only excluded if all of their children are excluded int resourceType = resource.getType(); return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT); }
public boolean exists() { // super.exist() only checks for the parent and the resource existence // so also ensure that: // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577) // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456) return super.exists() && !Util.isExcluded(this) && isValidPackageName(); } /**
public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) { IPath path = resource.getFullPath(); // ensure that folders are only excluded if all of their children are excluded int resourceType = resource.getType(); return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT); }
protected SourceFile findSourceFile(IFile file, boolean mustExist) { if (mustExist && !file.exists()) return null; ClasspathMultiDirectory md = null; if (this.sourceLocations.length > 0) { IPath sourceFileFullPath = file.getFullPath(); for (int j = 0, m = this.sourceLocations.length; j < m; j++) { if (this.sourceLocations[j].sourceFolder.getFullPath().isPrefixOf(sourceFileFullPath)) { md = this.sourceLocations[j]; if (md.exclusionPatterns == null && md.inclusionPatterns == null) break; if (!Util.isExcluded(file, md.inclusionPatterns, md.exclusionPatterns)) break; } } } return md == null ? null: new SourceFile(file, md); }