Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Preventing dnd of compartment children outside parent node
Preventing dnd of compartment children outside parent node [message #872512] Wed, 16 May 2012 08:57 Go to next message
Chris B. is currently offline Chris B.Friend
Messages: 37
Registered: November 2011
Member
Hi everyone,

how can i disallow it to drag elements of a compartment into another compartment of a different parent node that is of the same type? Actually, it shouldn't be possible at all to drag an element out of the compartment. If each editpart would have an accessible unique id, i could solve it with OCL. Any ideas?

regards
Chris
Re: Preventing dnd of compartment children outside parent node [message #880242 is a reply to message #872512] Fri, 01 June 2012 17:34 Go to previous message
Aurélien Pupier is currently offline Aurélien PupierFriend
Messages: 637
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

you should consider to use a Custom DragDropEditPolicy.
See here for a sample: http://www.bonitasoft.org/websvn/filedetails.php?repname=Bonita+Open+Solution&path=%2Fbonita-studio%2Ftags%2Fbonita-studio-5.6.3%2Fplugins%2Forg.bonitasoft.studio.diagram.custom%2Fsrc%2Forg%2Fbonitasoft%2Fstudio%2Fdiagram%2Fcustom%2FeditPolicies%2FCustomDragDropEditPolicy.java

regards,


Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
Previous Topic:Property Sheet validator
Next Topic:Integrating a GMF editor in JFace editor.
Goto Forum:
  


Current Time: Sat Dec 05 15:10:15 GMT 2020

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

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

Back to the top