Package org.eclipse.jst.jsp.core.internal.java.search

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


       
    String matchDocumentPath = match.getResource().getFullPath().toString();
    SearchDocument searchDoc = JSPSearchSupport.getInstance().getSearchDocument(matchDocumentPath);
   
    if (searchDoc != null && searchDoc instanceof JavaSearchDocumentDelegate) {
      JavaSearchDocumentDelegate javaSearchDoc = (JavaSearchDocumentDelegate)searchDoc;
      int jspStart = javaSearchDoc.getJspOffset(match.getOffset());
      int jspEnd = javaSearchDoc.getJspOffset(match.getOffset() + match.getLength());

      JSPTranslation trans = javaSearchDoc.getJspTranslation();
      String jspText = trans.getJspText();
      String javaText = javaSearchDoc.getJavaText();

      if (DEBUG)
        displayDebugInfo(match, jspStart, jspEnd, jspText, javaText);
   
      if (jspStart > -1 && jspEnd > -1)
        addSearchMatch(new Document(trans.getJspText()), javaSearchDoc.getFile(), jspStart, jspEnd, jspText);
    }
  }
View Full Code Here


      searchDocPath = (String)keys.next();
      MultiTextEdit javaEdit = (MultiTextEdit)fSearchDocPath2JavaEditMap.get(searchDocPath);
      delegate = support.getSearchDocument(searchDocPath);
     
      if(delegate != null && delegate instanceof JavaSearchDocumentDelegate) {
        JavaSearchDocumentDelegate javaDelegate = (JavaSearchDocumentDelegate)delegate;
        changes.add(createChange(javaDelegate, javaDelegate.getJspTranslation().getJspEdit(javaEdit)));
      }
    }
    return (Change[])changes.toArray(new Change[changes.size()]);
  }
View Full Code Here

      searchDocPath = (String)keys.next();
      MultiTextEdit javaEdit = (MultiTextEdit)fSearchDocPath2JavaEditMap.get(searchDocPath);
      delegate = support.getSearchDocument(searchDocPath);
     
      if(delegate != null && delegate instanceof JavaSearchDocumentDelegate) {
        JavaSearchDocumentDelegate javaDelegate = (JavaSearchDocumentDelegate)delegate;
        Change change = createChange(javaDelegate, javaDelegate.getJspTranslation().getJspEdit(javaEdit), participant);
        changes.add(change);
      }
    }
    return (Change[])changes.toArray(new Change[changes.size()]);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsp.core.internal.java.search.JavaSearchDocumentDelegate

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.