Package org.eclipse.jst.jsf.common.metadata

Examples of org.eclipse.jst.jsf.common.metadata.Model


   * @param tagName
   * @return small image using metadata.  May be null.
   */
  public Image getSmallIconImage(IProject project, String nsUri, String tagName) {
    Image image = null;
    Model model = getModel(project, nsUri);
    if (model != null){
      ImageDescriptor imgDesc = getSmallIconImageDescriptor(model, tagName);
      image = getOrCreateImage(imgDesc);
    }
   
View Full Code Here


   * @param tagName
   * @return large image using metadata.  May be null.
   */
  public Image getLargeIconImage(IProject project, String nsUri, String tagName) {
    Image image = null;
    Model model = getModel(project, nsUri);
    if (model != null){
      ImageDescriptor imgDesc = getLargeIconImageDescriptor(model, nsUri);
      image = getOrCreateImage(imgDesc)
    }
   
View Full Code Here

    return image;
  }
 
  private Model getModel(IProject project, String nsUri) {
    ITaglibDomainMetaDataModelContext modelContext = TaglibDomainMetaDataQueryHelper.createMetaDataModelContext(project, nsUri);
    Model model =TaglibDomainMetaDataQueryHelper.getModel(modelContext);
    // no caching at this time so there is no need to listen to model notifications
//    if (model != null && !hasAdapter(model))
//      addAdapter(model);
    return model;
  }
View Full Code Here

      return category;
   

    final ITaglibDomainMetaDataModelContext modelContext = TaglibDomainMetaDataQueryHelper
        .createMetaDataModelContext(manager.getTagRegistryIdentifier().getProject(), tldURI);
    final Model model = TaglibDomainMetaDataQueryHelper.getModel(modelContext);
    category = createTaglibPaletteDrawer(manager, doc, model);

    if (category != null) {
      loadTags(category, doc, model);
      sortTags(category.getChildren());
View Full Code Here

      return category;

    final IProject project = manager.getTagRegistryIdentifier().getProject();
    final ITaglibDomainMetaDataModelContext modelContext = TaglibDomainMetaDataQueryHelper
        .createMetaDataModelContext(project, ns.getNSUri());
    final Model model = TaglibDomainMetaDataQueryHelper.getModel(modelContext);
    category = createTaglibPaletteDrawer(manager,  ns, model);

    if (category != null) {
      loadTags(category, ns, model);
      sortTags(category.getChildren());
View Full Code Here

     */
    static TagCreationInfo createCreationInfo(
            final ITaglibDomainMetaDataModelContext metaDataContext,
            final String id, final String tagName)
    {
        final Model model = TaglibDomainMetaDataQueryHelper
                .getModel(metaDataContext);
        if (model != null)
        {
            Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model,
                    PaletteInfos.TRAIT_ID);
View Full Code Here

    private String nsURI;
    private String name;
    public TaglibData(String nsURI) {
      this.nsURI = nsURI;
      ITaglibDomainMetaDataModelContext modelContext = TaglibDomainMetaDataQueryHelper.createMetaDataModelContext(project, nsURI);
      Model model = TaglibDomainMetaDataQueryHelper.getModel(modelContext);
      Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model, "display-label"); //$NON-NLS-1$
      this.name = TraitValueHelper.getValueAsString(trait);
    }
View Full Code Here

   
    /**
     * @return flag indicating that jsf component
     */
    public boolean isJSFComponent() {     
        Model model = TaglibDomainMetaDataQueryHelper.getModel(_taglibMetaDataContext);
        Trait t = TaglibDomainMetaDataQueryHelper.getTrait(model, "is-jsf-component-library"); //$NON-NLS-1$
        if (t != null)
            return TraitValueHelper.getValueAsBoolean(t);
       
        return false;
View Full Code Here

    private String nsURI;
    private String name;
    public TaglibData(String nsURI) {
      this.nsURI = nsURI;
      ITaglibDomainMetaDataModelContext modelContext = TaglibDomainMetaDataQueryHelper.createMetaDataModelContext(project, nsURI);
      Model model = TaglibDomainMetaDataQueryHelper.getModel(modelContext);
      Trait trait = TaglibDomainMetaDataQueryHelper.getTrait(model, "display-label"); //$NON-NLS-1$
      this.name = TraitValueHelper.getValueAsString(trait);
    }
View Full Code Here

  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

TOP

Related Classes of org.eclipse.jst.jsf.common.metadata.Model

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.