[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Affixed parent side - non-movable

There is a general principle of GEF editors - all actions are requested from editparts that delegate this to editpolicies. So in your case you have to find port editpolicy that contributes action to move itself. The solution would be to install other editpolicy or to veto the action by returning UnexecutableCommand. I guess it should be some descendant of LayoutEditPolicy. The same way you may move the parent - install editpolicy in the port that will ask it's parent to move itself.

Agatha Schmitz wrote:
Hello everybody...

My affixed parent side objects (ports) should be non-movable. Is there a possibility to achieve this? Or is there a way to forward the request to the parent so that only the whole figure is movable.

Some help or hints would be great.


TIA Agatha Schmitz