Package org.eclipse.wst.common.core.search.document

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


          documentEntry.setKey(name.toString());
          documentEntry.setName(name);
          document.putEntry(documentEntry);
        }
        else if(pattern instanceof XMLComponentDeclarationPattern){
          ComponentDeclarationEntry documentEntry = new ComponentDeclarationEntry();
          documentEntry.setCategory(IXMLSearchConstants.COMPONENT_DECL);
                    QualifiedName name = new QualifiedName(targetNamespace, attributes.getValue("name")); //$NON-NLS-1$
          QualifiedName metaName = new QualifiedName(uri, localName);                   
          documentEntry.setKey(name.toString());
                    documentEntry.setName(name);
          documentEntry.setMetaName(metaName);
          document.putEntry(documentEntry);
        }
      }
    }
    currentPath.push(localName); //$NON-NLS-1$   
View Full Code Here


          // TODO.. don't assume the category is COMPONENT_DECL... handle any arbitarty category
          Entry[] entries = document.getEntries(IXMLSearchConstants.COMPONENT_DECL, null, 0);
          for (int i = 0; i < entries.length; i++)
          {
            // TODO.. don't assume this is just a component declaration entry           
            ComponentDeclarationEntry entry = (ComponentDeclarationEntry)entries[i];
            SearchMatch searchMatch = new SearchMatch(null, 0, 0, file);
            searchMatch.map.put("name", entry.getName()); //$NON-NLS-1$
            searchMatch.map.put("metaName", entry.getMetaName()); //$NON-NLS-1$
            try
            {
              requestor.acceptSearchMatch(searchMatch);
            }
            catch (Exception e)
View Full Code Here

TOP

Related Classes of org.eclipse.wst.common.core.search.document.ComponentDeclarationEntry

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.