Examples of CMDocumentFactoryTLD


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

  public TaglibPaletteDrawer configPaletteItemsByTLD(
      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.CMDocumentFactoryTLD

    }
    else if (uri.equalsIgnoreCase(CMDocType.TAPESTRY5_DOC_TYPE)){
      doc = HTMLCMDocumentFactory.getCMDocument(CMDocType.TAPESTRY5_DOC_TYPE);
    }
    else if (_project != null ){//TLD
      CMDocumentFactoryTLD factory = new CMDocumentFactoryTLD();
      ITaglibRecord[] tldRecs = TaglibIndex.getAvailableTaglibRecords(_project.getFullPath());
      ITaglibRecord tldRec = findTLD(tldRecs, uri);
      if (tldRec != null)
        doc = factory.createCMDocument(tldRec);
    }
   
    if (doc != null){
      _source = new TaglibMetaDataSource(doc);
      ret.add(_source);
View Full Code Here

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

  public static String getURIFromTaglibRecord(ITaglibRecord tldRec, IProject project) {   
    //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.CMDocumentFactoryTLD

  public TaglibPaletteDrawer configPaletteItemsByTLD(
      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.CMDocumentFactoryTLD

            if (JSFCoreTraceOptions.TRACE_JSPTAGREGISTRY_PERF)
            {
                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);
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.