aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormclay2008-10-21 16:54:15 (EDT)
committersefftinge2008-10-21 16:54:15 (EDT)
commit174532ba7cdd187009cd40cb0e6ad4d7802522e1 (patch)
tree7b10a74826c5c745fe78333d725db27209fa5f0e
parent5b4996488d210bd9c04d460a19eb0da11c7d7d93 (diff)
downloadorg.eclipse.xtext-174532ba7cdd187009cd40cb0e6ad4d7802522e1.zip
org.eclipse.xtext-174532ba7cdd187009cd40cb0e6ad4d7802522e1.tar.gz
org.eclipse.xtext-174532ba7cdd187009cd40cb0e6ad4d7802522e1.tar.bz2
upd: adapt signature change of GeneratorFacade#generate
-rw-r--r--devtools/org.eclipse.xtext.reference/src/org/eclipse/xtext/reference/ReferenceGrammar.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/devtools/org.eclipse.xtext.reference/src/org/eclipse/xtext/reference/ReferenceGrammar.java b/devtools/org.eclipse.xtext.reference/src/org/eclipse/xtext/reference/ReferenceGrammar.java
index 10f5ef5..b920330 100644
--- a/devtools/org.eclipse.xtext.reference/src/org/eclipse/xtext/reference/ReferenceGrammar.java
+++ b/devtools/org.eclipse.xtext.reference/src/org/eclipse/xtext/reference/ReferenceGrammar.java
@@ -21,13 +21,14 @@ import org.eclipse.xtext.resource.XtextResourceSet;
public class ReferenceGrammar {
private Logger log = Logger.getLogger(ReferenceGrammar.class);
- private static final String PATH = "src-gen";
+ private static final String SRC_GEN_PATH = "src-gen";
+ private static final String SRC_PATH = "src-gen";
private static final String UI_PATH = "../org.eclipse.xtext.reference.ui_gen";
public void generate() throws IOException {
XtextStandaloneSetup.doSetup();
- GeneratorFacade.cleanFolder(PATH);
+ GeneratorFacade.cleanFolder(SRC_GEN_PATH);
String classpathUri = "classpath:/"+getClass().getName().replace('.', '/') + ".xtext";
log.info("loading " + classpathUri);
@@ -36,7 +37,7 @@ public class ReferenceGrammar {
resource.load(null);
Grammar grammarModel = (Grammar) resource.getContents().get(0);
- GeneratorFacade.generate(grammarModel, PATH, UI_PATH, "xtest", "tst");
+ GeneratorFacade.generate(grammarModel, SRC_GEN_PATH, SRC_PATH, UI_PATH, "xtest", "tst");
log.info("Done.");
}