How to launch the XTend compilation after having generating Xtend code? [message #1402832] |
Thu, 17 July 2014 17:22 |
ARno B Messages: 9 Registered: July 2014 |
Junior Member |
|
|
Hi,
I have a DSL, powered by Xtext, that generates Xtend code.
When I edit a model of my DSL the Xtend code is correctly generated in a dedicated folder (different than xtend-gen) but not compiled.
To compile the generated xtend code, I need to open the xtend files, add a space, and save (refresh, clean, and co do not work).
How can I (programmatically) trigger the Xtend compilation after the generation of my code?
Cheers,
ARno
|
|
|
|
|
|
|
|
Re: How to launch the XTend compilation after having generating Xtend code? [message #1402860 is a reply to message #1402857] |
Thu, 17 July 2014 21:10 |
ARno B Messages: 9 Registered: July 2014 |
Junior Member |
|
|
The project has the xtext nature and text builder since the xtend files are compiled if a modified them manually.
I tried brutal things:
ResourcesPlugin.getWorkspace().getRoot().projects.forEach[proj|
proj.refreshLocal(IResource.DEPTH_INFINITE, null)
proj.touch(null)
proj.build(IncrementalProjectBuilder::CLEAN_BUILD, null)
]
...
myXtendFile.touch(null)
myXtendFile2.touch(null)
but the xtend files are still not compiled when editing my DSL model.
Is there something to add in the mwe2 or something to bind to chain the xtend/xtext builder to my dsl?
[Updated on: Thu, 17 July 2014 21:11] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02964 seconds