|
|
|
Re: 2 Label for node on Diagram [message #1062940 is a reply to message #1062806] |
Tue, 11 June 2013 09:40  |
Eclipse User |
|
|
|
Hi,
I solve this problem by fixing the generated genmodel with a qvto transformation that is executed each time the genmodel is produced. Do the following:
1) create a folder called transformation
2) create a file called postRec.qvto in this folder
3) place the following code in it
modeltype GMFGEN uses gmfgen('http://www.eclipse.org/gmf/2009/GenModel');
transformation postRec(inout gmfgenModel : GMFGEN);
main() {
--fix BUG 331875
gmfgenModel.objectsOfType(ExpressionLabelParser)->forEach(parser)
{
parser.className := parser.className.concat(parser._uses->first().container().oclAsType(GenCommonBase).visualID.toString());
};
}
4) On the last page of the genmodel generation wizard select "Extra in-place gmfgen transformation after a reconcile step"
5) Fill into the text box platform:/resource/pluginname/transformation/filename.qvto
6) Press finish
This should solve the problem if you run into this bug.
Ralph
|
|
|
Powered by
FUDForum. Page generated in 0.25701 seconds