Examples of TagRegistryIdentifier


Examples of org.eclipse.jst.jsf.core.internal.CompositeTagRegistryFactory.TagRegistryIdentifier

  public static PaletteItemManager getInstance(final IPaletteContext paletteContext) { 
    boolean hasLock = false;
    try {
      if (MANAGER_LOCK.tryLock(MANAGER_LOCK_TIMEOUT, TimeUnit.SECONDS)){
        hasLock = true;
        final TagRegistryIdentifier regId = getTagRegistryIdentifier(paletteContext);
        if (regId == null) {
          PDPlugin.log(new Status(IStatus.ERROR, PDPlugin.getPluginId(), "Unable to display palette for "+paletteContext.getFile().getName()+".  Unknown content type for file."))//$NON-NLS-1$//$NON-NLS-2$
          return null;
        }
        PaletteItemManager manager = _managers.get(regId);
View Full Code Here

Examples of org.eclipse.jst.jsf.core.internal.CompositeTagRegistryFactory.TagRegistryIdentifier

          final IContentType contentType =
              typeManager.findContentTypeFor(file.getName());
         
          if (contentType != null)
          {
              return new TagRegistryIdentifier(file.getProject(), contentType);
          }
          return null;
    }
    //to support legacy null projects.   Allows HTML and JSP tag libs to be displayed.
      return new TagRegistryIdentifier(null, org.eclipse.jst.pagedesigner.utils.JSPUtil.JSP_CONTENTTYPE);

  }
View Full Code Here

Examples of org.eclipse.jst.jsf.core.internal.CompositeTagRegistryFactory.TagRegistryIdentifier

        final IContentType contentType =
            typeManager.findContentTypeFor(file.getName());
        ITagRegistry tagRegistry = null;
        if (contentType != null)
        {
            final TagRegistryIdentifier id =
                new TagRegistryIdentifier(file.getProject(), contentType);
            tagRegistry = CompositeTagRegistryFactory.getInstance().getRegistry(id);
        }
        return tagRegistry;
    }
View Full Code Here

Examples of org.eclipse.jst.jsf.core.internal.CompositeTagRegistryFactory.TagRegistryIdentifier

  public static PaletteItemManager getInstance(final IPaletteContext paletteContext) { 
    boolean hasLock = false;
    try {
      if (MANAGER_LOCK.tryLock(MANAGER_LOCK_TIMEOUT, TimeUnit.SECONDS)){
        hasLock = true;
        final TagRegistryIdentifier regId = getTagRegistryIdentifier(paletteContext);
        if (regId == null) {
          PDPlugin.log(new Status(IStatus.ERROR, PDPlugin.getPluginId(), "Unable to display palette for "+paletteContext.getFile().getName()+".  Unknown content type for file."))//$NON-NLS-1$//$NON-NLS-2$
          return null;
        }
        PaletteItemManager manager = _managers.get(regId);
View Full Code Here

Examples of org.eclipse.jst.jsf.core.internal.CompositeTagRegistryFactory.TagRegistryIdentifier

          final IContentType contentType =
              typeManager.findContentTypeFor(file.getName());
         
          if (contentType != null)
          {
              return new TagRegistryIdentifier(file.getProject(), contentType);
          }
          return null;
    }
    //to support legacy null projects.   Allows HTML and JSP tag libs to be displayed.
      return new TagRegistryIdentifier(null, org.eclipse.jst.pagedesigner.utils.JSPUtil.JSP_CONTENTTYPE);

  }
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.