Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » how to forbid a figure be moved out of it's parent (container) figure
how to forbid a figure be moved out of it's parent (container) figure [message #214591] Mon, 05 January 2009 18:16
Eclipse UserFriend
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
Previous Topic:refreshing derived property
Next Topic:adding functionality to outline view
Goto Forum:
  


Current Time: Sat Apr 27 00:15:07 GMT 2024

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

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

Back to the top