|
Re: Get content from model viewer [message #1751016 is a reply to message #1750702] |
Tue, 03 January 2017 16:42 |
|
Hi Max,
I understand that you want to get graphical as well as semantic properties of certain elements (not fully clear understand what you want to do). The graphical element is a GMF view (oe.gmf.runtime.notation) which is for instance a diagram, a node or an edge. If you want to obtain graphical properties such as the bounds, you can query its layout constraints, e.g. Location (also in oe.gmf.runtime.notation) could be a layout constraint. Please note that these are properties of the notation model are not identical to those of the figure that the viewer constructs from it at runtime, as the latter depend for instance on the zoom-level.
Name and type are attributes of the semantic UML model. The getElement() method of a graphical element can be used to navigate to the semantic element.
Hope that helps
|
|
|
Powered by
FUDForum. Page generated in 0.04047 seconds