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

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


            ldifTemplateContextTypeRegistry.addContextType( LdifEditorConstants.LDIF_MODDN_RECORD_TEMPLATE_ID );
        }

        if ( ldifTemplateStore == null )
        {
            ldifTemplateStore = new ContributionTemplateStore( getLdifTemplateContextTypeRegistry(),
                getPreferenceStore(), "templates" ); //$NON-NLS-1$
            try
            {
                ldifTemplateStore.load();
            }
View Full Code Here


     *
     * @return the template store of this plug-in instance
     */
    public static TemplateStore getTemplateStore(String type) {
      if (!fStoreList.containsKey(type)) {
        ContributionTemplateStore store = new ContributionTemplateStore(TemplateHelper.getContextTypeRegistry(),
            EclipseEmmetPlugin.getDefault().getPreferenceStore(), CUSTOM_TEMPLATES_KEY + "." + type);
        try {
          store.load();
          fStoreList.put(type, store);
        } catch (IOException e) {
          e.printStackTrace();
          throw new RuntimeException(e);
        }
View Full Code Here

     *
     * @return the template store of this plug-in instance
     */
    public static TemplateStore getVariableStore() {
      if (fVariableStore == null) {
        fVariableStore = new ContributionTemplateStore(TemplateHelper.getVariableContextTypeRegistry(),
            EclipseEmmetPlugin.getDefault().getPreferenceStore(), CUSTOM_TEMPLATES_KEY + ".variable");
        try {
          fVariableStore .load();
        } catch (IOException e) {
          e.printStackTrace();
View Full Code Here

     *
     * @return the template store of this plug-in instance
     */
    public TemplateStore getTemplateStore() {
        if (fStore == null) {
            fStore = new ContributionTemplateStore(getContextTypeRegistry(),
                    ErlideUIPlugin.getDefault().getPreferenceStore(),
                    ERLANGSOURCE_TEMPLATES_KEY);
            try {
                fStore.load();
            } catch (final IOException e) {
View Full Code Here

    private static ContributionContextTypeRegistry  contextTypeRegistry = null;


    public static TemplateStore getDjangoTemplateStore() {
        if (templatesStore == null) {
          templatesStore = new ContributionTemplateStore(
                      getDjangoContextTypeRegistry(),
                      DjangoActivator.getDefault().getPreferenceStore(),
                      DJANGO_CUSTOM_TEMPLATES_KEY
                    );
            try {
View Full Code Here

    private static ContributionContextTypeRegistry  contextTypeRegistry = null;


    public static TemplateStore getDjangoTemplateStore() {
        if (templatesStore == null) {
          templatesStore = new ContributionTemplateStore(
                      getDjangoContextTypeRegistry(),
                      DjangoPlugin.getDefault().getPreferenceStore(),
                      DJANGO_CUSTOM_TEMPLATES_KEY
                    );
            try {
View Full Code Here

                new GlobalTemplateVariables.Cursor() );
        }

        if ( filterTemplateStore == null )
        {
            filterTemplateStore = new ContributionTemplateStore( getFilterTemplateContextTypeRegistry(),
                getPreferenceStore(), "templates" ); //$NON-NLS-1$
            try
            {
                filterTemplateStore.load();
            }
View Full Code Here

        }

        // ACI Template Store initialization
        if ( aciTemplateStore == null )
        {
            aciTemplateStore = new ContributionTemplateStore( getAciTemplateContextTypeRegistry(),
                getPreferenceStore(), "templates" ); //$NON-NLS-1$
            try
            {
                aciTemplateStore.load();
            }
View Full Code Here

  }

  public TemplateStore getTemplateStore(){

    if (fStore == null){
      fStore = new ContributionTemplateStore(getContextTypeRegistry(),
          ToolPlugin.getDefault().getPreferenceStore(), TOOL_TEMPLATES_KEY);
      try {
        fStore.load();
      } catch (IOException e){
        ToolPlugin.showError("Error Template Store", e);
View Full Code Here

  }

  public TemplateStore getTemplateStore(){

    if (fStore == null){
      fStore = new ContributionTemplateStore(getContextTypeRegistry(),
          ToolEditorActivator.getDefault().getPreferenceStore(), TOOL_TEMPLATES_KEY);
      try {
        fStore.load();
      } catch (IOException e){
        ToolEditorActivator.showError("Error Template Store", e);
View Full Code Here

TOP

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

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.