Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Problem understanding diagram partitioning
Problem understanding diagram partitioning [message #897017] Fri, 20 July 2012 18:56
Achim E. is currently offline Achim E.Friend
Messages: 8
Registered: July 2009
Location: Germany
Junior Member
Hi,

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:

Element A
++Element B
++++Element C
++++Element D


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?

Kind regards
Achim

[Updated on: Fri, 20 July 2012 18:58]

Report message to a moderator

Previous Topic:templates: change code of inner classes
Next Topic:Tools Palette elements directly from Java
Goto Forum:
  


Current Time: Thu Mar 28 23:08:06 GMT 2024

Powered by FUDForum. Page generated in 0.06541 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top