Package org.eclipse.xtext.generator

Examples of org.eclipse.xtext.generator.AbstractFileSystemAccess


  @Inject
  private EclipseHelpGenerator generator;

  protected void generate(Document obj) throws Exception {
    AbstractFileSystemAccess fsa = new JavaIoFileSystemAccess();
    fsa.setOutputPath(System.getProperty("user.dir") + File.separatorChar+"test-gen"+ File.separatorChar);
    generator.doGenerate(obj.eResource(), fsa);
  }
View Full Code Here


  protected void generate(EObject eObject) {
    generate(eObject, "false");
  }

  private void generate(EObject obj, String release) {
    AbstractFileSystemAccess fsa = new JavaIoFileSystemAccess();
    fsa.setOutputPath(System.getProperty("user.dir")+File.separatorChar+"test-gen");
    gen.doGenerate(obj, fsa);
//    Map<String, Variable> vars = getXpandCtx().getGlobalVariables();
//    Variable var = new Variable("release", release);
//    vars.put("release", var);
//    XpandFacade.create(getXpandCtx()).evaluate(
View Full Code Here

  private HTMLNamingExtensions naming;
  @Inject
  private AbstractSectionExtension utils;

  protected void generate(Document obj) throws Exception {
    AbstractFileSystemAccess fsa = new JavaIoFileSystemAccess();
    fsa.setOutputPath(Outlets.WEB_SITE, Outlets.WEB_SITE_PATH_NAME);
    fsa.setOutputPath(System.getProperty("user.dir") + File.separatorChar+"test-gen"+ File.separatorChar+ "html" + File.separatorChar);
    generator.generate(obj, fsa);
  }
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.generator.AbstractFileSystemAccess

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.