Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Disable drop node to other compartments
Disable drop node to other compartments [message #117639] Fri, 06 April 2007 10:34 Go to next message
Eclipse UserFriend
Originally posted by: Andrey_Medvedev.epam.com

I have two nodes with compartment by same type ParentNode. Within
compartment plased two child nodes with same type ChildNode.

How to disable drag and droping ChildNodes between ParentNodes?
Now, I can drag ChildNode from ParentNode1 and drop it to ParentNode2. How
to disable this? ChildNodes placed in ParentNode1 must stay in ParentNode1.
Re: Disable drop node to other compartments [message #117850 is a reply to message #117639] Mon, 09 April 2007 06:39 Go to previous message
Eclipse UserFriend
Originally posted by: Andrey_Medvedev.epam.com

Andrey Medvedev wrote:

> I have two nodes with compartment by same type ParentNode. Within
> compartment plased two child nodes with same type ChildNode.

> How to disable drag and droping ChildNodes between ParentNodes?
> Now, I can drag ChildNode from ParentNode1 and drop it to ParentNode2. How
> to disable this? ChildNodes placed in ParentNode1 must stay in ParentNode1.

In ***CompartmentSemanticEditPolicy override method

protected Command getMoveCommand(MoveRequest req) {
return UnexecutableCommand.INSTANCE;
}
Previous Topic:How to coustmize properties view
Next Topic:custom diagram preferences
Goto Forum:
  


Current Time: Fri Apr 25 02:06:22 EDT 2025

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

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

Back to the top