Package org.eclipse.jface.text.templates.persistence

Examples of org.eclipse.jface.text.templates.persistence.TemplateReaderWriter


        }

        public void save() throws IOException {

          StringWriter output = new StringWriter();
          TemplateReaderWriter writer = new TemplateReaderWriter();
          writer.save(getTemplateData(false), output);

          projectSettings.setValue(KEY, output.toString());
          projectSettings.save();
        }
      };
View Full Code Here


    }
    String pref = new ProjectScope(project).getNode(SymfonyUiPlugin.PLUGIN_ID).get(
        KEY, null);
    if (pref != null && pref.trim().length() > 0) {
      Reader input = new StringReader(pref);
      TemplateReaderWriter reader = new TemplateReaderWriter();
      TemplatePersistenceData[] datas;
      try {
        datas = reader.read(input);
        return datas.length > 0;
      } catch (IOException e) {
        // ignore
      }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.templates.persistence.TemplateReaderWriter

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.