how to forbid a figure be moved out of it's parent (container) figure [message #214591] |
Mon, 05 January 2009 18:16 |
Eclipse User |
|
|
|
Originally posted by: pieris.rapaeWITHOUT_THIS.web.de
Hello,
i have created a statechart editor with gmf that uses hierarchical
states. and there is one kind of state that looks different (dashed or
solid line borders) if it is contained into different types of parent
states.
so using the editor creating these states they will be created with the
right graphical figure that fits to its parent. but you can move them
out of its parent figures (drag and drop) into an other and into the
wrong parent.
to solve this problem i tried to
- to forbid moving these states out of their parent (but movable
within) but i did not find out how to do this.
- or change its graphical representation when it is moved to an other
parent.
but it seems to the editPart do not know their parent figures, so how to
know how to paint the view.
- or make it out of two different types in the metamodel, what i do not
want to do! (or only if i could not find any other solution)
does anyone could give me any hints how to deal with this problem?
thanks
Lisa
|
|
|
Powered by
FUDForum. Page generated in 0.02757 seconds