Examples of CMDocumentImpl


Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.CMDocumentImpl

   
    Iterator taglibs = docMgr.getCMDocumentTrackers(fCurrentNode.getStartOffset()).iterator();
    while (taglibs.hasNext()) {
      TaglibTracker tracker = (TaglibTracker)taglibs.next();
      if(tracker.getPrefix().equals(prefix)) {
        CMDocumentImpl doc = (CMDocumentImpl)tracker.getDocument();
       
        List functions = doc.getFunctions();
        for(Iterator it = functions.iterator(); it.hasNext(); ) {
          TLDFunction function = (TLDFunction)it.next();
          if(function.getName().equals(functionName)) {
            String javaFuncName = getFunctionNameFromSignature(function.getSignature());
            if (javaFuncName == null)
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.CMDocumentImpl

    Iterator taglibs = docMgr.getCMDocumentTrackers(offset).iterator();
    while (taglibs.hasNext()) {
      TaglibTracker tracker = (TaglibTracker) taglibs.next();
      if (tracker.getPrefix().equals(prefix)) {
        CMDocumentImpl doc = (CMDocumentImpl) tracker.getDocument();

        List functions = doc.getFunctions();
        for (Iterator it = functions.iterator(); it.hasNext();) {
          TLDFunction function = (TLDFunction) it.next();
          CustomCompletionProposal proposal = new CustomCompletionProposal(
              function.getName() + "()", //$NON-NLS-1$
              offset,
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.CMDocumentImpl

    Iterator taglibs = docMgr.getCMDocumentTrackers(offset).iterator();
    while (taglibs.hasNext()) {
      TaglibTracker tracker = (TaglibTracker) taglibs.next();
      if (tracker.getPrefix().equals(prefix)) {
        CMDocumentImpl doc = (CMDocumentImpl) tracker.getDocument();

        List functions = doc.getFunctions();
        for (Iterator it = functions.iterator(); it.hasNext();) {
          TLDFunction function = (TLDFunction) it.next();
          CustomCompletionProposal proposal = new CustomCompletionProposal(function.getName() + "()", //$NON-NLS-1$
                offset, 0, function.getName().length() + 1, null, function.getName() + " - " + function.getSignature(), null, null, 1); //$NON-NLS-1$
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.contentmodel.basic.CMDocumentImpl

  {
  }

  public CMDocument createCMDocument(String uri)
  {                     
    CMDocumentImpl cmdocument =new CMDocumentImpl(uri);
    cmdocument.setInferred(true);
    return cmdocument;
  }   
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.contentmodel.basic.CMDocumentImpl

  }   
  public CMElementDeclaration createCMElementDeclaration(CMDocument cmDocument, Element element, boolean isLocal)
  {
    String localName = element.getLocalName();                                  
    CMDocumentImpl cmDocumentImpl = (CMDocumentImpl)cmDocument;

    CMNamedNodeMapImpl elementMap = isLocal ?
                                    (CMNamedNodeMapImpl)cmDocumentImpl.getLocalElementPool() :
                                    (CMNamedNodeMapImpl)cmDocumentImpl.getElements();

    CMElementDeclarationImpl ed = (CMElementDeclarationImpl)elementMap.getNamedItem(localName);
    if (ed == null)
    {                                                                                         
      //System.out.println("create ed " + localName);
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.