|ReparentCommand never allowed [message #512279]
||Thu, 04 February 2010 14:58
| Aurélien Pupier
Registered: July 2009
Location: Grenoble, FRANCE
I try to allow reparent of my element in my diagram without success. I have the "forbidden mouse icon" when I drag an element from one container to another.
The CreationEditPolicy.getReparentCommand is called and return a command that can be executed (I called canExecute() on it to check).
If I "allow" move on another container in LayoutEditPolicy.getMoveCommand, I don't have anymore the "forbidden mouse icon" but when I drop the element is not reparented, he is still in the old container even if it is drawn on top of the targeted new container.
So what am I doing wrong?
Should I need to allow move from layoutEditPolicy even if the reparentCommand come from the creationEditPolicy?
Might it be a conflict between policies?
Thanks by advance for any hints.
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Powered by FUDForum
. Page generated in 0.01744 seconds