Package at.bestsolution.efxclipse.text.jface.templates.persistence

Examples of at.bestsolution.efxclipse.text.jface.templates.persistence.TemplatePersistenceData


   */
  protected void loadContributedTemplates() throws IOException {
    IConfigurationElement[] extensions= getTemplateExtensions();
    Collection contributed= readContributedTemplates(extensions);
    for (Iterator it= contributed.iterator(); it.hasNext();) {
      TemplatePersistenceData data= (TemplatePersistenceData) it.next();
      internalAdd(data);
    }
  }
View Full Code Here


          stream= new BufferedInputStream(url.openStream());
          TemplateReaderWriter reader= new TemplateReaderWriter();
          TemplatePersistenceData[] datas= reader.read(stream, bundle);
          for (int i= 0; i < datas.length; i++) {
            TemplatePersistenceData data= datas[i];
            if (data.isCustom()) {
              if (data.getId() == null)
                TextEditorPlugin.logErrorMessage(MessageFormat.format(ContributionTemplateMessages.ContributionTemplateStore_ignore_no_id, data.getTemplate().getName()));
              else
                TextEditorPlugin.logErrorMessage(MessageFormat.format(ContributionTemplateMessages.ContributionTemplateStore_ignore_deleted, data.getTemplate().getName()));
            } else if (validateTemplate(data.getTemplate())) {
              templates.add(data);
            }
          }
        } finally {
          try {
View Full Code Here

              bAutoInsert= true;
            else
              bAutoInsert= Boolean.valueOf(autoInsert).booleanValue();

            Template template= new Template(name, desc, contextTypeId, pattern, bAutoInsert);
            TemplatePersistenceData data= new TemplatePersistenceData(template, true, id);
            if (validateTemplate(template))
              map.add(data);
          }
        }
      }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.text.jface.templates.persistence.TemplatePersistenceData

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.