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

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




  public ContextTypeRegistry getContextTypeRegistry(){
    if (fRegistry == null){
      fRegistry = new ContributionContextTypeRegistry();
    }
    fRegistry.addContextType(ToolTemplateContextType.CONTEXT_TYPE);
    return fRegistry;
  }
View Full Code Here




  public ContextTypeRegistry getContextTypeRegistry(){
    if (fRegistry == null){
      fRegistry = new ContributionContextTypeRegistry();
    }
    fRegistry.addContextType(ToolTemplateContextType.CONTEXT_TYPE);
    return fRegistry;
  }
View Full Code Here

   *
   * @return the template context type registry for the jsp plugin
   */
  public ContextTypeRegistry getTemplateContextRegistry() {
    if (fContextTypeRegistry == null) {
      ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();
      registry.addContextType(TemplateContextTypeIdsJSP.ALL);
      registry.addContextType(TemplateContextTypeIdsJSP.NEW);
      registry.addContextType(TemplateContextTypeIdsJSP.TAG);
      registry.addContextType(TemplateContextTypeIdsJSP.ATTRIBUTE);
      registry.addContextType(TemplateContextTypeIdsJSP.ATTRIBUTE_VALUE);
      registry.addContextType(TemplateContextTypeIdsJSP.NEW_TAG);
     
      fContextTypeRegistry= registry;
    }

    return fContextTypeRegistry;
View Full Code Here

   *
   * @return the template context type registry for the xml plugin
   */
  public ContextTypeRegistry getTemplateContextRegistry() {
    if (fContextTypeRegistry == null) {
      ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();
      registry.addContextType(TemplateContextTypeIdsXML.TAPESTRY_ENTITIES);
      registry.addContextType(TemplateContextTypeIdsXML.ALL);
      registry.addContextType(TemplateContextTypeIdsXML.NEW);
      registry.addContextType(TemplateContextTypeIdsXML.TAG);
      registry.addContextType(TemplateContextTypeIdsXML.ATTRIBUTE);
      registry.addContextType(TemplateContextTypeIdsXML.ATTRIBUTE_VALUE);
      registry.addContextType(TemplateContextTypeIdsXML.TAPESTRY_COMPONENTS_ATTR);
      registry.addContextType(TemplateContextTypeIdsXML.TAPESTRY_COMPONENTS_ATTR_VALUE);
      registry.addContextType(TemplateContextTypeIdsXML.TAPESTRY_COMPONENTS);
     

      fContextTypeRegistry = registry;
    }

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

        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

            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

        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

        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

            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

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.