Package org.eclipse.jdt.core.search

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


                JSPSearchParticipant[] participants = { getSearchParticipant() };
                SearchEngine engine = new SearchEngine();
                try {
                    if (monitor != null)
                        monitor.beginTask("", 0); //$NON-NLS-1$
                    engine.search(javaSearchPattern, participants, fScope, fRequestor, monitor);
                } catch (CoreException e) {
                    Logger.logException(e);
                    //throw e;
                }
                // non-CoreExceptions will permanently stall the Worker thread
View Full Code Here


                JSPSearchParticipant[] participants = { getSearchParticipant() };
                SearchEngine engine = new SearchEngine();
                try {
                    if (jobMonitor != null)
                        jobMonitor.beginTask("", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
                    engine.search(javaSearchPattern, participants, this.fScope, this.fRequestor, jobMonitor);
                } catch (CoreException e) {
                    if (DEBUG)
                        Logger.logException(e);
                }
                // non-CoreExceptions will permanently stall the Worker thread
View Full Code Here

                JSPSearchParticipant[] participants = { getSearchParticipant() };
                SearchEngine engine = new SearchEngine();
                try {
                    if (monitor != null)
                        monitor.beginTask("", 0); //$NON-NLS-1$
                    engine.search(javaSearchPattern, participants, fScope, fRequestor, monitor);
                } catch (CoreException e) {
                    Logger.logException(e);
                    //throw e;
                }
                // non-CoreExceptions will permanently stall the Worker thread
View Full Code Here

          IJavaSearchScope scope = createProjectSearchScope(source
              .getJavaElement());
          SearchEngine searchEngine = new SearchEngine();
          AfferentCollector c = new AfferentCollector(source);
          searchEngine.search(pattern,
              new SearchParticipant[] { SearchEngine
                  .getDefaultSearchParticipant() }, scope, c,
              null);
          return c.getResult();
        } catch (CoreException e) {
View Full Code Here

          .createJavaSearchScope(new IJavaElement[] { source
              .getJavaElement() });
      SearchEngine searchEngine = new SearchEngine();
      try {
        EfferentCollector c = new EfferentCollector(source);
        searchEngine.search(pattern,
            new SearchParticipant[] { SearchEngine
                .getDefaultSearchParticipant() }, scope, c,
            null);
        return c.getResult();
      } catch (CoreException e) {
View Full Code Here

                methodName,
          matchType,
          IJavaSearchConstants.DECLARATIONS,
          SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE );
           
            searchEngine.search(
                pattern,
          new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() },
                    searchScope,
          searchRequestor,
          monitor
View Full Code Here

                methodName,
          matchType,
          IJavaSearchConstants.REFERENCES,
          SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE);
           
            searchEngine.search(
                pattern,
          new SearchParticipant[] {SearchEngine.getDefaultSearchParticipant()},
                    searchScope,
          searchRequestor,
          monitor
View Full Code Here

                    methodName,
                    matchType,
                    IJavaSearchConstants.DECLARATIONS,
                    SearchPattern.R_EXACT_MATCH | SearchPattern.R_CASE_SENSITIVE );
           
            searchEngine.search(
                    pattern,
                    new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() },
                    searchScope,
                    searchRequestor,
                    monitor
View Full Code Here

          IJavaSearchConstants.METHOD,
          IJavaSearchConstants.DECLARATIONS,
          SearchPattern.R_PATTERN_MATCH | SearchPattern.R_CASE_SENSITIVE
          );
    
      searchEngine.search(
          pattern,
          new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() },
              searchScope,
              requestor,
          monitor
View Full Code Here

      SearchPattern pattern = SearchPattern.createPattern(element, IJavaSearchConstants.REFERENCES);
      SearchParticipant[] participants = new SearchParticipant[] { SearchEngine.getDefaultSearchParticipant() };
      IJavaSearchScope scope = SearchEngine.createWorkspaceScope();

      BasicSearchRequestor requestor = new BasicSearchRequestor();
      searchEngine.search(pattern, participants, scope, requestor, null);

      SearchMatch[] matches = requestor.getMatches();
      for (SearchMatch match : matches) {
        try {
          IJavaElement javaElement = (IJavaElement) ((PlatformObject) (match.getElement())).getAdapter(IJavaElement.class);
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.