Modify Genmodel from source
Is there a开发者_C百科 way to modify a genmodel (which was created using an EMF ANT Task)programatically? I do not want to touch it anymore by myself after creation.
What do you mean by modifying it programmatically? If you mean accomodate it with the new elements of the source models, you can use the ecore2genmodel application (not available in Ant); or re-run your existing ant task with the reconcileGenModel="reload" parameter.
If you mean setting the genmodel attributes (e.g. class name conventions, EMF feature generation settings), I recommend setting them manually. There is no harm that way, it is intended to be customized by hand.
精彩评论