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

Examples of org.eclipse.jst.jsp.core.internal.contentmodel.tld.TLDCMDocumentManager$IncludeHelper


    List results = new ArrayList();
    if (problems == null)
      problems = new ArrayList();
    ModelQuery mq = getModelQuery(structuredDoc);
    if (mq != null) {
      TLDCMDocumentManager mgr = TaglibController.getTLDCMDocumentManager(structuredDoc);

      // TaglibSupport support = ((TaglibModelQuery)
      // mq).getTaglibSupport();
      if (mgr == null)
        return new TaglibVariable[0];

      List trackers = mgr.getCMDocumentTrackers(-1);
      Iterator taglibs = trackers.iterator();

      // TaglibSupport support = ((TaglibModelQuery)
      // mq).getTaglibSupport();
      // if (support == null)
View Full Code Here


      fTaglibPrefixes.add("servlet"); //$NON-NLS-1$
      fTaglibPrefixes.add("sun"); //$NON-NLS-1$
      fTaglibPrefixes.add("sunw"); //$NON-NLS-1$

      // add all taglib prefixes
      TLDCMDocumentManager manager = TaglibController.getTLDCMDocumentManager(document);
      if (manager != null) {
        List trackers = manager.getTaglibTrackers();
        for (Iterator it = trackers.iterator(); it.hasNext();) {
          TaglibTracker tracker = (TaglibTracker) it.next();
          if (tracker.getElements().getLength() == 0)
            continue;
          String prefix = tracker.getPrefix();
View Full Code Here

      String prefix = node.getPrefix();

      if (result == null && prefix != null && prefix.length() > 0 && node instanceof IDOMNode) {
        // check position dependent
        IDOMNode xmlNode = (IDOMNode) node;
        TLDCMDocumentManager tldmgr = TaglibController.getTLDCMDocumentManager(xmlNode.getStructuredDocument());
        if (tldmgr != null) {
          List documents = tldmgr.getCMDocumentTrackers(node.getPrefix(), xmlNode.getStartOffset());
          // there shouldn't be more than one cmdocument returned
          if (documents != null && !documents.isEmpty())
            result = (CMDocument) documents.get(0);
        }
      }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsp.core.internal.contentmodel.tld.TLDCMDocumentManager$IncludeHelper

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.