|Problem understanding diagram partitioning [message #897017]
||Fri, 20 July 2012 18:56
| Achim E.
Registered: July 2009
I have a problem understanding the context of diagram partitioning.
I would like to solve the following problem:
I have an EMF model with the following structure:
The generated GMF diagram now shows these model elements in the corresponding form
with the help of compartments.
Now I want to generate a subeditor for the same model. The Editor will be started
by double-clicking a element B, i.e. I will get one a graphical representation
in which only the elements C and D are displayed.
If I now add a new element D in the subeditor, the parent editor also handle this
inserted element properly.
So far everything works fine.
My problem concerns the deletion of an element in the subeditor.
If, for example I delete an element C in the subeditor, in the corresponding
XXXItemSemanticEditPolicy class within the method getDestroyElementCommand(),
a command was created, which will remove the graphical representation for
element C from the diagram of the subeditor.
But I also need is a command, which will remove the graphical representation
for element C from the diagram of the parent editor. The two diagrams ared stored
in the same XMI file.
How can I create a command for deleting a graphical representation within another
diagram? Is such a thing possible, or do I have a complete fallacy?
[Updated on: Fri, 20 July 2012 18:58]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.04543 seconds