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

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

本文整理了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

  1. @Override
  2. protected boolean isExcluded(IResource resource) {
  3. if (this.exclusionPatterns != null || this.inclusionPatterns != null)
  4. if (this.sourceFolder.equals(this.binaryFolder))
  5. return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns);
  6. return false;
  7. }
  8. @Override

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

  1. protected boolean isExcluded(IResource resource) {
  2. if (this.exclusionPatterns != null || this.inclusionPatterns != null)
  3. if (this.sourceFolder.equals(this.binaryFolder))
  4. return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns);
  5. return false;
  6. }

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

  1. protected boolean isExcluded(IResource resource) {
  2. if (this.exclusionPatterns != null || this.inclusionPatterns != null)
  3. if (this.sourceFolder.equals(this.binaryFolder))
  4. return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns);
  5. return false;
  6. }

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

  1. protected boolean isExcluded(IResource resource) {
  2. if (this.exclusionPatterns != null || this.inclusionPatterns != null)
  3. if (this.sourceFolder.equals(this.binaryFolder))
  4. return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns);
  5. return false;
  6. }

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

  1. protected boolean isExcluded(IResource resource) {
  2. if (this.exclusionPatterns != null || this.inclusionPatterns != null)
  3. if (this.sourceFolder.equals(this.binaryFolder))
  4. return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns);
  5. return false;
  6. }

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

  1. protected boolean isExcluded(IResource resource) {
  2. if (this.exclusionPatterns != null || this.inclusionPatterns != null)
  3. if (this.sourceFolder.equals(this.binaryFolder))
  4. return Util.isExcluded(resource, this.inclusionPatterns, this.exclusionPatterns);
  5. return false;
  6. }

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

  1. @Override
  2. public boolean exists() {
  3. // super.exist() only checks for the parent and the resource existence
  4. // so also ensure that:
  5. // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577)
  6. // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456)
  7. return super.exists() && !Util.isExcluded(this) && isValidPackageName();
  8. }
  9. /**

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

  1. public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  2. IPath path = resource.getFullPath();
  3. // ensure that folders are only excluded if all of their children are excluded
  4. int resourceType = resource.getType();
  5. return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT);
  6. }

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

  1. public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  2. IPath path = resource.getFullPath();
  3. // ensure that folders are only excluded if all of their children are excluded
  4. int resourceType = resource.getType();
  5. return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT);
  6. }

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

  1. public boolean exists() {
  2. // super.exist() only checks for the parent and the resource existence
  3. // so also ensure that:
  4. // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577)
  5. // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456)
  6. return super.exists() && !Util.isExcluded(this) && isValidPackageName();
  7. }
  8. /**

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

  1. public boolean exists() {
  2. // super.exist() only checks for the parent and the resource existence
  3. // so also ensure that:
  4. // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577)
  5. // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456)
  6. return super.exists() && !Util.isExcluded(this) && isValidPackageName();
  7. }
  8. /**

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

  1. public boolean exists() {
  2. // super.exist() only checks for the parent and the resource existence
  3. // so also ensure that:
  4. // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577)
  5. // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456)
  6. return super.exists() && !Util.isExcluded(this) && isValidPackageName();
  7. }
  8. /**

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

  1. public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  2. IPath path = resource.getFullPath();
  3. // ensure that folders are only excluded if all of their children are excluded
  4. int resourceType = resource.getType();
  5. return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT);
  6. }

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

  1. public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  2. IPath path = resource.getFullPath();
  3. // ensure that folders are only excluded if all of their children are excluded
  4. int resourceType = resource.getType();
  5. return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT);
  6. }

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

  1. public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  2. IPath path = resource.getFullPath();
  3. // ensure that folders are only excluded if all of their children are excluded
  4. int resourceType = resource.getType();
  5. return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT);
  6. }

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

  1. public boolean exists() {
  2. // super.exist() only checks for the parent and the resource existence
  3. // so also ensure that:
  4. // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577)
  5. // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456)
  6. return super.exists() && !Util.isExcluded(this) && isValidPackageName();
  7. }
  8. /**

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

  1. public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  2. IPath path = resource.getFullPath();
  3. // ensure that folders are only excluded if all of their children are excluded
  4. int resourceType = resource.getType();
  5. return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT);
  6. }

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

  1. public boolean exists() {
  2. // super.exist() only checks for the parent and the resource existence
  3. // so also ensure that:
  4. // - the package is not excluded (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=138577)
  5. // - its name is valide (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=108456)
  6. return super.exists() && !Util.isExcluded(this) && isValidPackageName();
  7. }
  8. /**

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

  1. public final static boolean isExcluded(IResource resource, char[][] inclusionPatterns, char[][] exclusionPatterns) {
  2. IPath path = resource.getFullPath();
  3. // ensure that folders are only excluded if all of their children are excluded
  4. int resourceType = resource.getType();
  5. return isExcluded(path, inclusionPatterns, exclusionPatterns, resourceType == IResource.FOLDER || resourceType == IResource.PROJECT);
  6. }

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

  1. protected SourceFile findSourceFile(IFile file, boolean mustExist) {
  2. if (mustExist && !file.exists()) return null;
  3. ClasspathMultiDirectory md = null;
  4. if (this.sourceLocations.length > 0) {
  5. IPath sourceFileFullPath = file.getFullPath();
  6. for (int j = 0, m = this.sourceLocations.length; j < m; j++) {
  7. if (this.sourceLocations[j].sourceFolder.getFullPath().isPrefixOf(sourceFileFullPath)) {
  8. md = this.sourceLocations[j];
  9. if (md.exclusionPatterns == null && md.inclusionPatterns == null)
  10. break;
  11. if (!Util.isExcluded(file, md.inclusionPatterns, md.exclusionPatterns))
  12. break;
  13. }
  14. }
  15. }
  16. return md == null ? null: new SourceFile(file, md);
  17. }

相关文章

Util类方法