Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsPlace a custom figure into a compartment
https://www.eclipse.org/forums/index.php/mv/msg/383991/922697/#msg_922697
for some reasons I have to insert a custom figure, which is actually an image (pointing to a class that extends ImageFigure), into a compartment. How can I achieve this, if at all possible? The problem is I cannot map a custom figure to a child reference, because it is not a feature that appears in the model. Could anyone give me some useful hints?
Thanks,
Chris]]>Chris B.2012-09-25T08:42:39-00:00Re: Place a custom figure into a compartment
https://www.eclipse.org/forums/index.php/mv/msg/383991/924032/#msg_924032
Regards,
Chris]]>Chris B.2012-09-26T12:29:56-00:00Re: Place a custom figure into a compartment
https://www.eclipse.org/forums/index.php/mv/msg/383991/936828/#msg_936828
it is hard to understand what you want to achieve. Do you want to have a figure for a link?
Ralph]]>Ralph Gerbig2012-10-08T11:28:10-00:00Re: Place a custom figure into a compartment
https://www.eclipse.org/forums/index.php/mv/msg/383991/938309/#msg_938309
I admit, this needs more explanation. In my company we are using QFTest to verify the validity of the GMF diagrams. The catch is, the software only recognizes selectable objects on the diagram like nodes, labels and compartments, in other words components that can be edited. The information used for the object recognition is taken out of the XMI representation of the diagram (both, model and notation view element tags). Therefore images can not be detected, due to their absence. A very error-prone workaround is to locate these objects by position estimation. What i want to do is to put images into editable view elements, e.g.labels or compartments, without modifying the model, just to have a reference to the respective object. Maybe it became much clearer to you now.
Regards,
Chris ]]>Chris B.2012-10-09T18:59:57-00:00Re: Place a custom figure into a compartment
https://www.eclipse.org/forums/index.php/mv/msg/383991/939999/#msg_939999
Quote:
What i want to do is to put images into editable view elements, e.g.labels or compartments, without modifying the model, just to have a reference to the respective object.
did you try out the SVGFigure in the graphical model? With this you can have nodes that are represented by a figure. This would meet the requirement to have an image in an editable element. Hope I got you right this time.
Ralph]]>Ralph Gerbig2012-10-11T08:10:56-00:00Re: Place a custom figure into a compartment
https://www.eclipse.org/forums/index.php/mv/msg/383991/940559/#msg_940559
sounds exactely like what i'm looking for. I'll give it a try.