Programmatically change appearance/style of diagrams [message #1786975] |
Wed, 16 May 2018 17:55 |
Merlin May Messages: 5 Registered: May 2018 |
Junior Member |
|
|
Hello everyone,
for a small project at my university i need to know, wether or not it is possible to change the appearance of objects within a diagram programmatically. We would like to transform old model diagrams, created with GMF tooling, to our newly created Sirius editor, but would like to transform the appearance to the new diagram as well. Properties, we would like to transfer, are positions of the objects, sizes and other basic styling properties.
Maybe someone might help me.
Looking forward for your answers,
Merlin
|
|
|
Re: Programmatically change appearance/style of diagrams [message #1787014 is a reply to message #1786975] |
Thu, 17 May 2018 10:49 |
|
Hello,
You will need to execute a RecordingCommand to modify the LayoutConstraint (Location, Height and Width) element of each GMF Nodes and the height and width of each DNode from the Sirius diagram to match the information from your old GMF diagram (depending on the number of diagram you have, it might be simpler to do it manually). For the style, I don't think that you will need to change anything programmatically, the definition of the style of your mappings in the odesign should be enough.
Regards,
Steve
Steve Monnier - Obeo Canada
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02915 seconds