Package org.eclipse.ui.editors.text.templates

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


            colorRegistry = new ColorRegistry( getWorkbench().getDisplay() );
        }

        if ( ldifTemplateContextTypeRegistry == null )
        {
            ldifTemplateContextTypeRegistry = new ContributionContextTypeRegistry();

            ldifTemplateContextTypeRegistry.addContextType( LdifEditorConstants.LDIF_FILE_TEMPLATE_ID );
            ldifTemplateContextTypeRegistry.getContextType( LdifEditorConstants.LDIF_FILE_TEMPLATE_ID ).addResolver(
                new GlobalTemplateVariables.Cursor() );
View Full Code Here


     * @return the context type registry for this plug-in instance
     */
    public static ContextTypeRegistry getContextTypeRegistry() {
        if (fRegistry == null) {
            // create and configure the contexts available in the template editor
            fRegistry = new ContributionContextTypeRegistry();
            fRegistry.addContextType(EmmetContextType.CTX_HTML);
            fRegistry.addContextType(EmmetContextType.CTX_CSS);
            fRegistry.addContextType(EmmetContextType.CTX_XML);
            fRegistry.addContextType(EmmetContextType.CTX_XSL);
            fRegistry.addContextType(EmmetContextType.CTX_HAML);
View Full Code Here

     * @return the context type registry for this plug-in instance
     */
    public static ContextTypeRegistry getVariableContextTypeRegistry() {
      if (fVarsRegistry == null) {
        // create and configure the contexts available in the template editor
        fVarsRegistry = new ContributionContextTypeRegistry();
        fVarsRegistry.addContextType(EmmetContextType.CTX_VARIABLE);
      }
     
      return fVarsRegistry;
    }
View Full Code Here

    return fCodeTemplateStore;
  }
 
  public ContextTypeRegistry getCodeTemplateContextRegistry() {
    if (codeTypeRegistry == null) {
      ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();
      CodeTemplateContextType.registerContextTypes(registry);
      codeTypeRegistry = registry;
    }

    return codeTypeRegistry;
View Full Code Here

    }

    public ContextTypeRegistry getContextTypeRegistry() {
        if (fContextTypeRegistry == null) {
            // create an configure the contexts available in the template editor
            fContextTypeRegistry = new ContributionContextTypeRegistry();
            fContextTypeRegistry
                    .addContextType(ErlangTemplateContextType.ERLANG_CONTEXT_TYPE_ID);
            fContextTypeRegistry
                    .addContextType(ErlangSourceContextTypeModule.ERLANG_SOURCE_CONTEXT_TYPE_MODULE_ID);
            fContextTypeRegistry
View Full Code Here

     * @return the context type registry for this plug-in instance
     */
    public ContextTypeRegistry getContextTypeRegistry() {
        if (fRegistry == null) {
            // create an configure the contexts available in the template editor
            fRegistry = new ContributionContextTypeRegistry();
            fRegistry.addContextType(ERLANGSOURCE_CONTEXT_TYPE_COMMENTS);
            fRegistry.addContextType(ERLANGSOURCE_CONTEXT_TYPE_BEHAVIOUR);
            fRegistry.addContextType(ERLANGSOURCE_CONTEXT_TYPE_LAYOUT);
        }
        return fRegistry;
View Full Code Here

        return templatesStore;
    }

    public static ContextTypeRegistry getDjangoContextTypeRegistry() {
        if (contextTypeRegistry == null) {
          contextTypeRegistry = new ContributionContextTypeRegistry();
          contextTypeRegistry.addContextType(DjangoContextType.DJANGO_CONTEXT_TYPE_TAG);
          contextTypeRegistry.addContextType(DjangoContextType.DJANGO_CONTEXT_TYPE_FILTER);
        }
      return contextTypeRegistry;
    }
View Full Code Here

        return templatesStore;
    }

    public static ContextTypeRegistry getDjangoContextTypeRegistry() {
        if (contextTypeRegistry == null) {
          contextTypeRegistry = new ContributionContextTypeRegistry();
          contextTypeRegistry.addContextType(DjangoContextType.DJANGO_CONTEXT_TYPE_TAG);
          contextTypeRegistry.addContextType(DjangoContextType.DJANGO_CONTEXT_TYPE_FILTER);
        }
      return contextTypeRegistry;
    }
View Full Code Here

        valueEditorPreferences = new ValueEditorsPreferences();

        if ( filterTemplateContextTypeRegistry == null )
        {
            filterTemplateContextTypeRegistry = new ContributionContextTypeRegistry();
            filterTemplateContextTypeRegistry.addContextType( BrowserCommonConstants.FILTER_TEMPLATE_ID );
            filterTemplateContextTypeRegistry.getContextType( BrowserCommonConstants.FILTER_TEMPLATE_ID ).addResolver(
                new GlobalTemplateVariables.Cursor() );
        }
View Full Code Here

        super.start( context );

        // ACI Template ContextType Registry initialization
        if ( aciTemplateContextTypeRegistry == null )
        {
            aciTemplateContextTypeRegistry = new ContributionContextTypeRegistry();

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

TOP

Related Classes of org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry

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.