So, my aim is to create graphical DSL. I created a ecore model using Eclipse Modeling Framework, after that I've used Sirius to create graphical modeling tool and I have problems with the last step which is generating Java code. I would like to use Xtend to generate it. Any suggestions what would be the best way to do it, or some helpful links ?
There are two aspects:
.aird
or .odesign
files from Sirius) and produce whatever you want. I can't help on this aspect.Assuming you know how to programatically invoke the Xtend generator, there are several ways to trigger it from inside Sirius. For example you can use the Popup Menu type of tool to add an entry to the context menu of your modeler, which can then call any Java code you want, and launch the generator from there.
This is what Ecore Tools does to launch the EMF GenModel code gen: it declares the popup menu which invokes this Java class to perform the actual generation.