Examples of BasicSearchEngine


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

    if (size < length) {
      System.arraycopy(allSourceFolders, 0, allSourceFolders = new IPackageFragmentRoot[size], 0, size);
    }

    // Search all secondary types on scope
    new BasicSearchEngine().searchAllSecondaryTypeNames(allSourceFolders, nameRequestor, waitForIndexes, monitor);

    // Build types from paths
    Iterator packages = secondaryTypes.values().iterator();
    while (packages.hasNext()) {
      HashMap types = (HashMap) packages.next();
View Full Code Here

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

            return; // accept only top level types
          storage.acceptType(packageName, simpleTypeName, enclosingTypeNames, modifiers, access);
        }
      };
      try {
        new BasicSearchEngine(this.workingCopies).searchAllTypeNames(
          null,
          SearchPattern.R_EXACT_MATCH,
          name,
          SearchPattern.R_EXACT_MATCH,
          searchFor,
View Full Code Here

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

        }
      };
      try {
        int matchRule = SearchPattern.R_PREFIX_MATCH;
        if (camelCaseMatch) matchRule |= SearchPattern.R_CAMELCASE_MATCH;
        new BasicSearchEngine(this.workingCopies).searchAllTypeNames(
          qualification,
          SearchPattern.R_EXACT_MATCH,
          simpleName,
          matchRule, // not case sensitive
          searchFor,
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.BasicSearchEngine

            this.unitScope == null ? null : this.unitScope.referenceContext.imports);
     
      org.eclipse.jdt.core.ICompilationUnit[] workingCopies = this.owner == null ? null : JavaModelManager.getJavaModelManager().getWorkingCopies(this.owner, true/*add primary WCs*/);
     
      try {
        new BasicSearchEngine(workingCopies).searchAllTypeNames(
          null,
          SearchPattern.R_EXACT_MATCH,
          prefix,
          SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE,
          IJavaSearchConstants.TYPE,
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.BasicSearchEngine

    if (size < length) {
      System.arraycopy(allSourceFolders, 0, allSourceFolders = new IPackageFragmentRoot[size], 0, size);
    }

    // Search all secondary types on scope
    new BasicSearchEngine().searchAllSecondaryTypeNames(allSourceFolders, nameRequestor, waitForIndexes, monitor);

    // Build types from paths
    Iterator packages = secondaryTypes.values().iterator();
    while (packages.hasNext()) {
      HashMap types = (HashMap) packages.next();
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.BasicSearchEngine

    if (size < length) {
      System.arraycopy(allSourceFolders, 0, allSourceFolders = new IPackageFragmentRoot[size], 0, size);
    }

    // Search all secondary types on scope
    new BasicSearchEngine().searchAllSecondaryTypeNames(allSourceFolders, nameRequestor, waitForIndexes, monitor);

    // Build types from paths
    Iterator packages = secondaryTypes.values().iterator();
    while (packages.hasNext()) {
      HashMap types = (HashMap) packages.next();
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.BasicSearchEngine

            return; // accept only top level types
          storage.acceptType(packageName, simpleTypeName, enclosingTypeNames, modifiers, access);
        }
      };
      try {
        new BasicSearchEngine(this.workingCopies).searchAllTypeNames(
          null,
          SearchPattern.R_EXACT_MATCH,
          name,
          SearchPattern.R_EXACT_MATCH,
          searchFor,
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.BasicSearchEngine

      if (camelCaseMatch) matchRule |= SearchPattern.R_CAMELCASE_MATCH;
      if (monitor != null) {
        IndexManager indexManager = JavaModelManager.getIndexManager();
        if (indexManager.awaitingJobsCount() == 0) {
          // indexes were already there, so perform an immediate search to avoid any index rebuilt
          new BasicSearchEngine(this.workingCopies).searchAllTypeNames(
            qualification,
            SearchPattern.R_EXACT_MATCH,
            simpleName,
            matchRule, // not case sensitive
            searchFor,
            getSearchScope(),
            typeRequestor,
            FORCE_IMMEDIATE_SEARCH,
            progressMonitor);
        } else {
          // indexes were not ready, give the indexing a chance to finish small jobs by sleeping 100ms...
          try {
            Thread.sleep(100);
          } catch (InterruptedException e) {
            // Do nothing
          }
          if (monitor.isCanceled()) {
            throw new OperationCanceledException();
          }
          if (indexManager.awaitingJobsCount() == 0) {
            // indexes are now ready, so perform an immediate search to avoid any index rebuilt
            new BasicSearchEngine(this.workingCopies).searchAllTypeNames(
              qualification,
              SearchPattern.R_EXACT_MATCH,
              simpleName,
              matchRule, // not case sensitive
              searchFor,
              getSearchScope(),
              typeRequestor,
              FORCE_IMMEDIATE_SEARCH,
              progressMonitor);
          } else {
            // Indexes are still not ready, so look for types in the model instead of a search request
            findTypes(
              new String(prefix),
              storage,
              convertSearchFilterToModelFilter(searchFor));
          }
        }
      } else {
        try {
          new BasicSearchEngine(this.workingCopies).searchAllTypeNames(
            qualification,
            SearchPattern.R_EXACT_MATCH,
            simpleName,
            matchRule, // not case sensitive
            searchFor,
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.BasicSearchEngine

          }
          if (monitor.isCanceled()) {
            throw new OperationCanceledException();
          }
        }
        new BasicSearchEngine(this.workingCopies).searchAllConstructorDeclarations(
            qualification,
            simpleName,
            matchRule,
            getSearchScope(),
            constructorRequestor,
            FORCE_IMMEDIATE_SEARCH,
            progressMonitor);
      } else {
        try {
          new BasicSearchEngine(this.workingCopies).searchAllConstructorDeclarations(
              qualification,
              simpleName,
              matchRule,
              getSearchScope(),
              constructorRequestor,
View Full Code Here

Examples of org.eclipse.jdt.internal.core.search.BasicSearchEngine

            this.unitScope == null ? null : this.unitScope.referenceContext.imports);
     
      org.eclipse.jdt.core.ICompilationUnit[] workingCopies = this.owner == null ? null : JavaModelManager.getJavaModelManager().getWorkingCopies(this.owner, true/*add primary WCs*/);
     
      try {
        new BasicSearchEngine(workingCopies).searchAllTypeNames(
          null,
          SearchPattern.R_EXACT_MATCH,
          prefix,
          SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE,
          IJavaSearchConstants.TYPE,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.