Examples of SearchDocument


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

     * @param doc
     * @return the JSPSearchDocument or null if one is not found
     */
    public SearchDocument getSearchDocument(String searchDocPath) {
        
        SearchDocument delegate = null;
        IFile f = fileForCUPath(searchDocPath);
        if (f != null) {
            delegate = createSearchDocument(f);
        } else {
            // handle failure case... (file deleted maybe?)
View Full Code Here

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

        if (DEBUG)
            System.out.println("adding JSP file:" + file.getFullPath()); //$NON-NLS-1$

        // create
        SearchDocument delegate = createSearchDocument(file);
        // null if not a jsp file
        if (delegate != null) {
            try {
                getSearchParticipant().scheduleDocumentIndexing(delegate, computeIndexLocation(file.getParent().getFullPath()));
            } catch (Exception e) {
View Full Code Here

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

     * @param doc
     * @return the JSPSearchDocument or null if one is not found
     */
    public SearchDocument getSearchDocument(String searchDocPath) {
        
        SearchDocument delegate = null;
        IFile f = fileForCUPath(searchDocPath);
        if (f != null) {
            delegate = createSearchDocument(f);
        } else {
            // handle failure case... (file deleted maybe?)
View Full Code Here

Examples of org.eclipse.wst.common.core.search.document.SearchDocument

    IFile[] files = scope.enclosingFiles()
    for (int i = 0; i < files.length; i++)
    {
      IFile file = files[i];
      String path = file.getLocation().toString();
      SearchDocument document = documentSet.getSearchDocument(path, id);
      if (document != null)
      {             
      Entry[] entries = document.getEntries(getSearchEntryCategory(pattern), null, 0);          
      if ((entries != null && entries.length > 0) || (searchOptions != null && searchOptions.get("searchDirtyContent") != null))
            {
              //for (int j = 0; j < entries.length; j++)
              //{
              //  Entry entry = entries[j];
View Full Code Here

Examples of org.eclipse.wst.common.core.search.document.SearchDocument

      // Fix for bug 204174 - End
           
      if (source.startsWith(fileProtocol))
      {   
       
      SearchDocument document = set._tempGetSearchDocumetn(source.substring(fileProtocol.length()));     
      if (document != null)
      {       
        URIResolver uriResolver = URIResolverPlugin.createResolver();       
        Entry[] entries = document.getEntries(IXMLSearchConstants.REF, null, 0);
        String[] resolveEntry = new String[entries.length];       
        for (int j = 0; j < entries.length; j++)
        {
          Entry entry = entries[j];
          if (entry instanceof FileReferenceEntry)
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.