Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » ReparentCommand never allowed
ReparentCommand never allowed [message #512279] Thu, 04 February 2010 14:58
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

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?
Another ideas?

Thanks by advance for any hints.

Regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Using Different Images for Attributes in a Node
Next Topic:Changing Line Width
Goto Forum:
  


Current Time: Thu Apr 25 02:17:26 GMT 2024

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

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

Back to the top