Package org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDFunction


      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)
              javaFuncName = functionName;
            return function.getClassName() + "." + javaFuncName; //$NON-NLS-1$
          }
        }
      }
    }
    return null;
View Full Code Here


      // listener
      else if (nodeName.equals(JSP12TLDNames.LISTENER)) {
        document.getListeners().add(createListener(child));
      }
      else if (nodeName.equals(JSP20TLDNames.FUNCTION)) {
        TLDFunction function = createFunction(document, child);
        if (function != null) {
          document.getFunctions().add(function);
        }
      }
      else if (nodeName.equals(JSP20TLDNames.TAGLIB_EXTENSION)) {
View Full Code Here

      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$

          completionList.add(proposal);
        }
      }
    }
View Full Code Here

      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$

          completionList.add(proposal);
        }
      }
    }
View Full Code Here

      // listener
      else if (nodeName.equals(JSP12TLDNames.LISTENER)) {
        document.getListeners().add(createListener(child));
      }
      else if (nodeName.equals(JSP20TLDNames.FUNCTION)) {
        TLDFunction function = createFunction(document, child);
        if (function != null) {
          document.getFunctions().add(function);
        }
      }
      else if (nodeName.equals(JSP20TLDNames.TAGLIB_EXTENSION)) {
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsp.core.internal.contentmodel.tld.provisional.TLDFunction

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.