org.eclipse.jdt.internal.core.util.Util.isExcluded()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(8.2k)|赞(0)|评价(0)|浏览(211)

本文整理了Java中org.eclipse.jdt.internal.core.util.Util.isExcluded()方法的一些代码示例,展示了Util.isExcluded()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.isExcluded()方法的具体详情如下:
包路径:org.eclipse.jdt.internal.core.util.Util
类名称:Util
方法名:isExcluded

Util.isExcluded介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@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

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

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;
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

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;
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

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;
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

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;
}

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

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;
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@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();
}
/**

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

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);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

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);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

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();
}
/**

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

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();
}
/**

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

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();
}
/**

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

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);
}

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

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);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

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);
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

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();
}
/**

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

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);
}

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

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();
}
/**

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

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);
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

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);
}

相关文章

Util类方法