|
|
|
|
|
Re: Cross-reference issues [message #1724568 is a reply to message #1724562] |
Wed, 24 February 2016 16:55 |
Josselin Kerdraon Messages: 29 Registered: February 2016 |
Junior Member |
|
|
Sorry I'm beginner, and I'm on an old project that use Xtext.
The fact is that when you generate files with .mwe2 it generates a Main.java file, but I don't know where it's used. Is it important ?
This is the runGenerator method called by this main:
protected void runGenerator(String string) {
// load the resource
ResourceSet set = resourceSetProvider.get();
Resource resource = set.getResource(URI.createURI(string), true);
// validate the resource
List<Issue> list = validator.validate(resource, CheckMode.ALL, CancelIndicator.NullImpl);
if (!list.isEmpty()) {
for (Issue issue : list) {
System.err.println(issue);
}
return;
}
// configure and start the generator
fileAccess.setOutputPath("src-gen/");
generator.doGenerate(resource, fileAccess);
}
[Updated on: Wed, 24 February 2016 16:56] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.26276 seconds