|Reparent from top node to child node discards styles [message #1414766]
||Mon, 01 September 2014 09:04
| Joerg Hermann
Registered: September 2012
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
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,
Powered by FUDForum
. Page generated in 0.02153 seconds