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

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


   *
   * @return the template store of this plug-in instance
   */
  public TemplateStore getTemplateStore() {
    if (fStore == null) {
      fStore= new ContributionTemplateStore(getContextTypeRegistry(), CFMLPlugin.getDefault().getPreferenceStore(), CUSTOM_TEMPLATES_KEY);
      try {
        fStore.load();
      } catch (IOException e) {
        CFMLPlugin.getDefault().getLog().log(new Status(IStatus.ERROR, "org.cfeclipse.cfml.CFMLEditor", IStatus.OK, "", e)); //$NON-NLS-1$ //$NON-NLS-2$
      }
View Full Code Here


    return this.resourceBundle;
  }

  public TemplateStore getTemplateStore() {
    if (fStore == null) {
      fStore = new ContributionTemplateStore(null, CFMLPlugin.getDefault().getPreferenceStore(),
          CUSTOM_TEMPLATES_KEY);
      try {
        fStore.load();
      } catch (IOException e) {
        e.printStackTrace();
View Full Code Here

     *
     * @return the template store of this plug-in instance
     */
    public static TemplateStore getTemplateStore() {
        if (fStore == null) {
            fStore = new ContributionTemplateStore(TemplateHelper.getContextTypeRegistry(),
                    getTemplatesPreferenceStore(), CUSTOM_TEMPLATES_DJ_KEY);
            try {
                fStore.load();
            } catch (IOException e) {
                e.printStackTrace();
View Full Code Here

            this.ldifTemplateContextTypeRegistry.addContextType( BrowserUIConstants.LDIF_MODDN_RECORD_TEMPLATE_ID );
        }
        if ( this.filterTemplateStore == null )
        {
            this.filterTemplateStore = new ContributionTemplateStore( getFilterTemplateContextTypeRegistry(),
                getPreferenceStore(), "templates" );
            try
            {
                this.filterTemplateStore.load();
            }
            catch ( IOException e )
            {
                e.printStackTrace();
            }
        }
        if ( this.ldifTemplateStore == null )
        {
            this.ldifTemplateStore = new ContributionTemplateStore( getLdifTemplateContextTypeRegistry(),
                getPreferenceStore(), "templates" );
            try
            {
                this.ldifTemplateStore.load();
            }
View Full Code Here

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

   *
   * @return the template store for the Spring beans editor
   */
  public TemplateStore getTemplateStore() {
    if (templateStore == null) {
      templateStore = new ContributionTemplateStore(
          getTemplateContextRegistry(), getPreferenceStore(),
          TEMPLATES_KEY);
      try {
        templateStore.load();
      }
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.