Examples of JSPSearchScope


Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

    // should be handled by JSPIndexManager
    // https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3036
    // support.indexWorkspaceAndWait();
   
    JSPTypeMoveRequestor requestor = new JSPTypeMoveRequestor(type, newName);
    support.searchRunnable(type, new JSPSearchScope(), requestor);

    return requestor.getChanges();
  }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

  protected Change[] createChangesFor(IJavaElement element, String newName) {
    Change[] changes;
    BasicRefactorSearchRequestor requestor = getSearchRequestor(element, newName);
    if(requestor != null) {
      JSPSearchSupport support = JSPSearchSupport.getInstance();
      support.searchRunnable(element, new JSPSearchScope(), requestor);
      changes = requestor.getChanges(this);
    } else {
      changes = new Change[0];
    }
   
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

  protected Change[] createChangesFor(IJavaElement element, String newName) {
    Change[] changes;
    BasicRefactorSearchRequestor requestor = getSearchRequestor(element, newName);
    if(requestor != null) {
      JSPSearchSupport support = JSPSearchSupport.getInstance();
      support.searchRunnable(element, new JSPSearchScope(), requestor);
      changes = requestor.getChanges(this);
    } else {
      changes = new Change[0];
    }
   
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

      JSPSearchSupport support = JSPSearchSupport.getInstance();
      // index the file
      SearchDocument delegate =  support.addJspFile(getFile());
     
      String scopePath = delegate.getPath();
      JSPSearchScope singleFileScope = new JSPSearchScope(new String[]{getFile().getFullPath().toString(), scopePath});
     
      // perform a searchs
      // by passing in this jsp search query, requstor can add matches
      support.searchRunnable(getJavaElement(), singleFileScope, new JSPSingleFileSearchRequestor(getInstance()), monitor);
    }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

          System.out.println("JSP Query Participant searching on ELEMENT: " + element); //$NON-NLS-1$
       
        SearchRequestor jspRequestor = new JSPSearchRequestor(requestor);
       
        // pa_TODO need to adapt JavaSearchScope to a JSPSearchScope
        JSPSearchSupport.getInstance().search(element, new JSPSearchScope(), jspRequestor, monitor);
       
      }
      else if(querySpecification instanceof PatternQuerySpecification) {
       
        // pattern search (eg. from Java search page)
        PatternQuerySpecification patternQuery = (PatternQuerySpecification)querySpecification;
        String pattern = patternQuery.getPattern();
       
        if(DEBUG)
          System.out.println("JSP Query Participant searching on PATTERN: " + pattern); //$NON-NLS-1$
       
        SearchRequestor jspRequestor = new JSPSearchRequestor(requestor);
       
        JSPSearchSupport.getInstance().search(pattern,
                            new JSPSearchScope(),
                            patternQuery.getSearchFor(),
                            patternQuery.getLimitTo(),
                            SearchPattern.R_PATTERN_MATCH,
                            false,
                            jspRequestor,
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

    // should be handled by JSPIndexManager
    // https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3036
    // support.indexWorkspaceAndWait();
   
    BasicRefactorSearchRequestor requestor = new JSPMethodRenameRequestor(method, newName);
    support.searchRunnable(method, new JSPSearchScope(), requestor);

    return requestor.getChanges();
  }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

    // should be handled by JSPIndexManager
    // https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3036
    //support.indexWorkspaceAndWait();
   
    BasicRefactorSearchRequestor requestor = new JSPPackageRenameRequestor(pkg, newName);
    support.searchRunnable(pkg, new JSPSearchScope(), requestor);

    return requestor.getChanges();
  }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

    // https://w3.opensource.ibm.com/bugzilla/show_bug.cgi?id=3036
    // support.indexWorkspaceAndWait();
 
   
    JSPTypeRenameRequestor requestor = new JSPTypeRenameRequestor(type, newName);
    support.searchRunnable(type, new JSPSearchScope(), requestor);

    return requestor.getChanges();
  }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

      JSPSearchSupport support = JSPSearchSupport.getInstance();
      // index the file
      SearchDocument delegate =  support.addJspFile(getFile());
     
      String scopePath = delegate.getPath();
      JSPSearchScope singleFileScope = new JSPSearchScope(new String[]{getFile().getFullPath().toString(), scopePath});
     
      // perform a searchs
      // by passing in this jsp search query, requstor can add matches
      support.searchRunnable(getJavaElement(), singleFileScope, new JSPSingleFileSearchRequestor(getInstance()));
    }
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.search.JSPSearchScope

  protected Change[] createChangesFor(IJavaElement element, String newName, IProgressMonitor monitor) {
    Change[] changes;
    BasicRefactorSearchRequestor requestor = getSearchRequestor(element, newName);
    if(requestor != null) {
      JSPSearchSupport support = JSPSearchSupport.getInstance();
      support.searchRunnable(element, new JSPSearchScope(), requestor, monitor);
      changes = requestor.getChanges(this);
    } else {
      changes = new Change[0];
    }
   
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.