Examples of findTrait()


Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

//                        .getProject(), uri);
        final Entity entity = query.getQueryHelper().getEntity(
                uri, tagName);
        if (entity != null)
        {
            final Trait trait = query.findTrait(
                    entity, "containment-constraint"); //$NON-NLS-1$

            if (trait != null)
            {
                final ContainsTagConstraint tagConstraint = (ContainsTagConstraint) trait
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

      final Entity attrEntity) {
   
    final IMetaDataDomainContext modelContext   = getMetaDataDomainContext(sdContext);
    final ITaglibDomainMetaDataQuery query     = MetaDataQueryFactory.getInstance().createQuery(modelContext);

    Trait trait = query.findTrait(attrEntity,
        ATTRIBUTE_VALUE_RUNTIME_TYPE_PROP_NAME);

    if (trait == null) {
      return Collections.EMPTY_LIST;
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

//      if (resolver != null) {
      if (file != null) {
        final IMetaDataDomainContext mdcontext = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext(file);
        final ITaglibDomainMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(mdcontext);
        final Model m = query.findTagLibraryModel(uri);
        final Trait t = query.findTrait(m, "isTagDir"); //$NON-NLS-1$
        return TraitValueHelper.getValueAsBoolean(t);
      }
    }
    return false;
  }
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

          context = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext(file);
        else
          context = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext(project);
       
        final ITaglibDomainMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(context);
        Trait fileExt = query.findTrait(attr.getMetaDataContext().getEntity(), "file-extensions"); //$NON-NLS-1$
        Trait separator = query.findTrait(attr.getMetaDataContext().getEntity(), "separator"); //$NON-NLS-1$
        String[] fileExts = null;
        if (fileExt != null){
          List exts = TraitValueHelper.getValueAsListOfStrings(fileExt);
          fileExts = (String[])exts.toArray(new String[exts.size()]);
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

        else
          context = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext(project);
       
        final ITaglibDomainMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(context);
        Trait fileExt = query.findTrait(attr.getMetaDataContext().getEntity(), "file-extensions"); //$NON-NLS-1$
        Trait separator = query.findTrait(attr.getMetaDataContext().getEntity(), "separator"); //$NON-NLS-1$
        String[] fileExts = null;
        if (fileExt != null){
          List exts = TraitValueHelper.getValueAsListOfStrings(fileExt);
          fileExts = (String[])exts.toArray(new String[exts.size()]);
        }
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

        IAttributeRuntimeValueType.WEBPATH.equals(type)) {
     
      //FIXME - should not be passing null project
      final IMetaDataDomainContext context = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext((IProject)null);
      final ITaglibDomainMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(context);
      Trait fileExt = query.findTrait(attr.getMetaDataContext().getEntity(), "file-extensions"); //$NON-NLS-1$
      Trait seperator = query.findTrait(attr.getMetaDataContext().getEntity(), "separator"); //$NON-NLS-1$
     
      String[] fileExts = null;
      if (fileExt != null){
        List exts = TraitValueHelper.getValueAsListOfStrings(fileExt);
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

     
      //FIXME - should not be passing null project
      final IMetaDataDomainContext context = MetaDataQueryContextFactory.getInstance().createTaglibDomainModelContext((IProject)null);
      final ITaglibDomainMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(context);
      Trait fileExt = query.findTrait(attr.getMetaDataContext().getEntity(), "file-extensions"); //$NON-NLS-1$
      Trait seperator = query.findTrait(attr.getMetaDataContext().getEntity(), "separator"); //$NON-NLS-1$
     
      String[] fileExts = null;
      if (fileExt != null){
        List exts = TraitValueHelper.getValueAsListOfStrings(fileExt);
        fileExts = (String[])exts.toArray(new String[exts.size()]);
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

      if (uri != null) {
        final ITaglibDomainMetaDataQuery query = getQuery(part, node);
        if (query != null) {
          _tagEntity = query.getQueryHelper().getEntity(uri, node.getLocalName());
          if (_tagEntity != null) {
            Trait pds = query.findTrait(_tagEntity, QuickEditTabSections.TRAIT_ID);
            if (pds != null){
              _quickEditTabSections = (QuickEditTabSections)pds.getValue();
            }   
          }     
        }
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

    {
      final ITaglibDomainMetaDataQuery query = MetaDataQueryFactory.getInstance().createQuery(metaDataContext);
        final Model model = query.findTagLibraryModel(metaDataContext.getModelIdentifier());
        if (model != null)
        {
            Trait trait = query.findTrait(model,
                    PaletteInfos.TRAIT_ID);
            if (trait != null)
            {
                final PaletteInfos pis = (PaletteInfos) trait.getValue();
                final PaletteInfo pi = pis.findPaletteInfoById(id);
View Full Code Here

Examples of org.eclipse.jst.jsf.common.metadata.query.internal.taglib.ITaglibDomainMetaDataQuery.findTrait()

            }
            // tag-creation trait on entity directly?
            final Entity tag = query.findTagEntity(model, tagName);
            if (tag != null)
            {// metadata exists
                trait = query.findTrait(tag,
                        "tag-create"); //$NON-NLS-1$
                if (trait != null && trait.getValue() != null)
                {
                    return (TagCreationInfo) trait.getValue();
                }
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.