Examples of TLDDocument


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

      final IPaletteItemManager manager, final ITaglibRecord tldRec) {

    final String tldURI = CMUtil.getURIFromTaglibRecord(tldRec, manager.getTagRegistryIdentifier().getProject());

    final CMDocumentFactoryTLD factory = new CMDocumentFactoryTLD();
    final TLDDocument doc = (TLDDocument) factory.createCMDocument(tldRec);

    return getOrCreateTaglibPaletteDrawer(manager, doc, tldURI);
  }
View Full Code Here

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

  }

  @Override
  protected void createTagfileTraits(CMDocument doc) {   
    super.createTagfileTraits(doc);
    TLDDocument tldDoc = (TLDDocument)doc;
    //add special model trait if this comes from a TagDir
    if (CMUtil.isTagDirDocument(tldDoc, getProject())){
      Model model = getMergedModel();
      createSimpleBooleanObjectEntityTraitIfNecessary(model, "isTagDir", true); //$NON-NLS-1$
    }
View Full Code Here

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

          .getOriginNode();
    }
    if (decl instanceof TLDElementDeclaration) {
      CMDocument doc = ((TLDElementDeclaration) decl).getOwnerDocument();
      if (doc instanceof TLDDocument) {
        TLDDocument tldDoc = (TLDDocument)doc;
        return getURIFromDoc(tldDoc , null);
      }
    }
    return null;
  }
View Full Code Here

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

    //similar code in PaletteHelper and above   
    String uri = tldRec.getDescriptor().getURI();
    if (uri == null || uri.trim().equals("")) {     //$NON-NLS-1$
      //need to construct valid string representing taglib identifier
      CMDocumentFactoryTLD factory = new CMDocumentFactoryTLD();
      TLDDocument doc = (TLDDocument)factory.createCMDocument(tldRec);
      if (tldRec.getRecordType() == ITaglibRecord.TLD) {   
        uri = getStandaloneTLDURI(doc, project);     
      }
      else if (tldRec.getRecordType() == ITaglibRecord.TAGDIR) { 
        uri =  getTagDirURI(doc, project);       
View Full Code Here

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

      final IPaletteItemManager manager, final ITaglibRecord tldRec) {

    final String tldURI = CMUtil.getURIFromTaglibRecord(tldRec, manager.getTagRegistryIdentifier().getProject());

    final CMDocumentFactoryTLD factory = new CMDocumentFactoryTLD();
    final TLDDocument doc = (TLDDocument) factory.createCMDocument(tldRec);

    return getOrCreateTaglibPaletteDrawer(manager, doc, tldURI);
  }
View Full Code Here

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

            {
                startTime = System.nanoTime();
            }
           
            final CMDocumentFactoryTLD factory = new CMDocumentFactoryTLD();
            final TLDDocument doc = (TLDDocument) factory
                    .createCMDocument(tagRecord);
            if (doc != null)
            {
                final TLDNamespace ns = new TLDNamespace(doc, _resolver);
                _nsResolved.put(doc.getUri(), ns);
   
                if (fireEvent)
                {
                    fireEvent(new TagRegistryChangeEvent(this,
                            TagRegistryChangeEvent.EventType.ADDED_NAMESPACE,
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.