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


        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

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

   *
   * @return the template context type registry for the xml plugin
   */
  public ContextTypeRegistry getCodeTemplateContextRegistry() {
    if (codeTypeRegistry == null) {
      ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();

      CodeTemplateContextType.registerContextTypes(registry);

      codeTypeRegistry = registry;
    }
View Full Code Here

   * @return the template context type registry for the java plug-in
   * @since 3.0
   */
  public synchronized ContextTypeRegistry getTemplateContextRegistry() {
    if (fContextTypeRegistry == null) {
      ContributionContextTypeRegistry registry = new ContributionContextTypeRegistry();

      registry.addContextType(PhpTemplateContextType.PHP_CONTEXT_TYPE_ID);
      registry.addContextType(PhpTemplateContextType.PHP_STATEMENTS_CONTEXT_TYPE_ID);
      registry.addContextType(PhpTemplateContextType.PHP_TYPE_MEMBERS_CONTEXT_TYPE_ID);
      registry.addContextType(PhpTemplateContextType.PHP_GLOBAL_MEMBERS_CONTEXT_TYPE_ID);
      registry.addContextType(PhpTemplateContextType.PHP_TYPE_METHOD_STATEMENTS_CONTEXT_TYPE_ID);
      registry.addContextType(PhpTemplateContextType.PHP_CLASS_MEMBERS_CONTEXT_TYPE_ID);
      registry.addContextType(PhpCommentTemplateContextType.PHP_COMMENT_CONTEXT_TYPE_ID);

      fContextTypeRegistry = registry;
    }

    return 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(CFTemplateContextType.XML_CONTEXT_TYPE);
      fRegistry.addContextType(CFScriptTemplateContextType.CFSCRIPT_CONTEXT_TYPE);
    }
    return fRegistry;
  }
View Full Code Here

  }

  public ContextTypeRegistry getContextTypeRegistry() {
    if (fRegistry == null) {
      // create an configure the contexts available in the template editor
      fRegistry = new ContributionContextTypeRegistry();
      fRegistry.addContextType(CFTemplateContextType.XML_CONTEXT_TYPE);
      fRegistry.addContextType(CFScriptTemplateContextType.CFSCRIPT_CONTEXT_TYPE);
    }
    return fRegistry;
  }
View Full Code Here

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

        {
            this.colorRegistry = new ColorRegistry( this.getWorkbench().getDisplay() );
        }
        if ( this.filterTemplateContextTypeRegistry == null )
        {
            this.filterTemplateContextTypeRegistry = new ContributionContextTypeRegistry();
            this.filterTemplateContextTypeRegistry.addContextType( BrowserUIConstants.FILTER_TEMPLATE_ID );
            this.filterTemplateContextTypeRegistry.getContextType( BrowserUIConstants.FILTER_TEMPLATE_ID ).addResolver(
                new GlobalTemplateVariables.Cursor() );
        }
        if ( this.ldifTemplateContextTypeRegistry == null )
        {
            this.ldifTemplateContextTypeRegistry = new ContributionContextTypeRegistry();

            this.ldifTemplateContextTypeRegistry.addContextType( BrowserUIConstants.LDIF_FILE_TEMPLATE_ID );
            this.ldifTemplateContextTypeRegistry.getContextType( BrowserUIConstants.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.