Examples of ContributionContextTypeRegistry


Examples of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry

        super.start( context );
       
        // ACI Template ContextType Registry initialization
        if ( this.aciTemplateContextTypeRegistry == null )
        {
            this.aciTemplateContextTypeRegistry = new ContributionContextTypeRegistry();

            this.aciTemplateContextTypeRegistry.addContextType( ACIITemConstants.ACI_ITEM_TEMPLATE_ID );
            this.aciTemplateContextTypeRegistry.getContextType( ACIITemConstants.ACI_ITEM_TEMPLATE_ID )
                .addResolver( new GlobalTemplateVariables.Cursor() );
        }
View Full Code Here

Examples of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry

    return fCodeTemplateStore;
  }

  public ContextTypeRegistry getCodeTemplateContextRegistry() {
    if (codeTypeRegistry == null) {
      ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();

      CodeTemplateContextType.registerContextTypes(registry);

      codeTypeRegistry = registry;
    }
View Full Code Here

Examples of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry

    public ContextTypeRegistry getTemplateContextRegistry()
    {

        if (contentTypeRegistry == null) {
            ContributionContextTypeRegistry registry = new TwigContributionContextTypeRegistry();

            registry.addContextType(TwigTemplateContextType.TWIG_CONTEXT_TYPE_ID);

            contentTypeRegistry = registry;
        }

        return contentTypeRegistry;
View Full Code Here

Examples of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry

   *
   * @return the template context type registry for the Spring beans editor
   */
  public ContextTypeRegistry getTemplateContextRegistry() {
    if (contextTypeRegistry == null) {
      ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();
      registry.addContextType(BeansTemplateContextTypeIds.ALL);
      registry.addContextType(BeansTemplateContextTypeIds.PROPERTY);
      registry.addContextType(BeansTemplateContextTypeIds.BEAN);
      contextTypeRegistry = registry;
    }
    return contextTypeRegistry;
  }
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.