Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Reparent from top node to child node discards styles(Reparent on recursive node hierarchy)
Reparent from top node to child node discards styles [message #1414766] Mon, 01 September 2014 09:04
Joerg Hermann is currently offline Joerg HermannFriend
Messages: 15
Registered: September 2012
Location: Munich
Junior Member
My semantic model has a Container class which is mapped to a top node in GMF.
The Container may contain other objects or nested Containers as well.
Draging a Container with the mouse from top into an existing container basically
works, but unfortunately all style and size information is lost.
Looking into the generated code, I could see that GMF has generated two different
implementations, one used as top node, the other used for child node.
Dragging the element from top into the Container leads to the creation of a
completely new child node with just the semantic elements being moved into it.

Some ideas I tried:
- Tweaking the gmfgen to use the same implementation for top and child
(yould not work out, if this is possible at all..)
- Reimplement CreationEditPolicyWithCustomReparent and MoveViewCommand
to 'manually' consider the format changes.
unfortunately, it appears that the children of the container are not
copied directly, but somewhere 'under the hood'. So far I did not
understand the mechanism that is running here to be able to implement
this approach.

I would very much appreciate to get some more ideas or hints to get this
issue solved. (maybe I'm thinking even too complex and there is a very
simple solution to it?)

-
thanks in advance & best regards,
Joerg



Previous Topic:Extract compartment`s owner
Next Topic:Compartment Nodes
Goto Forum:
  


Current Time: Tue Apr 23 13:54:51 GMT 2024

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

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

Back to the top