Package org.eclipse.jdt.core.search

Examples of org.eclipse.jdt.core.search.SearchEngine


            }
        };
        IRunnableWithProgress runnable = new IRunnableWithProgress() {
            public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                try {
                    new SearchEngine().search(pattern, new SearchParticipant[] {
                        SearchEngine.getDefaultSearchParticipant()
                    }, scope, requestor, monitor);
                } catch (CoreException e) {
                    throw new InvocationTargetException(e);
                }
View Full Code Here


                    }
                    testCaseList.add(enclosingElement);
                }
            };
            try {
                new SearchEngine().search(pattern, SearchUtils.getDefaultSearchParticipants(), scope, requestor, monitor);
            } catch (CoreException e) {
                throw new TestCaseListException(e);
            }
            return typesFound;
        }
View Full Code Here

        final SearchPattern pattern = SearchPattern.createPattern("*", IJavaSearchConstants.PACKAGE, IJavaSearchConstants.DECLARATIONS, SearchPattern.R_PATTERN_MATCH | SearchPattern.R_CASE_SENSITIVE);

        IRunnableWithProgress operation = new IRunnableWithProgress() {
            public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
                try {
                    new SearchEngine().search(pattern, SearchUtils.getDefaultSearchParticipants(), scope, requestor, monitor);
                } catch (CoreException e) {
                    throw new InvocationTargetException(e);
                }
            }
        };
View Full Code Here

            }
        };
       
        IJavaSearchScope scope = getScope(null);
       
        SearchEngine searchEngine = new SearchEngine();
        searchEngine.search(pattern, new SearchParticipant[] {SearchEngine.getDefaultSearchParticipant()}, scope, requestor, null);

        if (matches.size() != 1) {
            throw new IllegalArgumentException("Failed to find unique type; found "+matches.size());
        }
View Full Code Here

            @Override public void acceptSearchMatch(SearchMatch match) {
                references.add(match);
            }
        };
       
        new SearchEngine().search(pattern,
                                  new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() },
                                  getScope(null),
                                  requestor,
                                  null);
       
View Full Code Here

            @Override public void acceptSearchMatch(SearchMatch match) {
                references.add(match);
            }
        };
       
        new SearchEngine().search(pattern,
                                  new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() },
                                  getScope(withinType),
                                  requestor,
                                  null);
       
View Full Code Here

            @Override public void acceptSearchMatch(SearchMatch match) {
                references.add(match);
            }
        };
       
        new SearchEngine().search(pattern,
                                  new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() },
                                  getScope(withinType),
                                  requestor,
                                  null);
       
View Full Code Here

        if (oldContainer != null && !oldContainer.equals(containerName)) {
          onDemandConflicts.add(name);
        }
      }
    };
    new SearchEngine().searchAllTypeNames(allPackages, allTypes, scope, requestor, IJavaSearchConstants.WAIT_UNTIL_READY_TO_SEARCH, monitor);
    return onDemandConflicts;
  }
View Full Code Here

      manager.deltaState.initializeRoots(true/*initAfteLoad*/);

      // dummy query for waiting until the indexes are ready
      if (monitor != null)
        monitor.subTask(Messages.javamodel_configuring_searchengine);
      SearchEngine engine = new SearchEngine();
      IJavaSearchScope scope = SearchEngine.createWorkspaceScope();
      try {
        engine.searchAllTypeNames(
          null,
          SearchPattern.R_EXACT_MATCH,
          "!@$#!@".toCharArray(), //$NON-NLS-1$
          SearchPattern.R_PATTERN_MATCH | SearchPattern.R_CASE_SENSITIVE,
          IJavaSearchConstants.CLASS,
View Full Code Here

        public void acceptSearchMatch(SearchMatch match) throws CoreException {
          types.add(match.getElement());
        }
        };

        SearchEngine searchEngine = new SearchEngine();
        searchEngine.search(
            pattern,
            new SearchParticipant[] {SearchEngine.getDefaultSearchParticipant()},
            scope,
            requestor,
            null);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.search.SearchEngine

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.