Package org.aspectj.org.eclipse.jdt.internal.core.search

Examples of org.aspectj.org.eclipse.jdt.internal.core.search.JavaSearchScope


          documentPath = path.toString();
      relativePath = Util.relativePath(path, 1/*remove project segment*/);
      }
 
    if (scope instanceof JavaSearchScope) {
      JavaSearchScope javaSearchScope = (JavaSearchScope) scope;
      // Get document path access restriction from java search scope
      // Note that requestor has to verify if needed whether the document violates the access restriction or not
      AccessRuleSet access = javaSearchScope.getAccessRuleSet(relativePath, index.containerPath);
      if (access != JavaSearchScope.NOT_ENCLOSED) { // scope encloses the path
        if (!requestor.acceptIndexMatch(documentPath, this, participant, access))
          throw new OperationCanceledException();
      }
    } else if (scope.encloses(documentPath)) {
View Full Code Here


        documentPath = path.toString();
    relativePath = Util.relativePath(path, 1/*remove project segment*/);
    }

  if (scope instanceof JavaSearchScope) {
    JavaSearchScope javaSearchScope = (JavaSearchScope) scope;
    // Get document path access restriction from java search scope
    // Note that requestor has to verify if needed whether the document violates the access restriction or not
    AccessRuleSet access = javaSearchScope.getAccessRuleSet(relativePath, index.containerPath);
    if (access != JavaSearchScope.NOT_ENCLOSED) { // scope encloses the path
      if (!requestor.acceptIndexMatch(documentPath, this, participant, access))
        throw new OperationCanceledException();
    }
  } else if (scope.encloses(documentPath)) {
View Full Code Here

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.core.search.JavaSearchScope

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.