Skip to main content



      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 04:57 Go to next message
Eclipse UserFriend
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 13:34 Go to previous message
Eclipse UserFriend
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,
Previous Topic:Property Sheet validator
Next Topic:Integrating a GMF editor in JFace editor.
Goto Forum:
  


Current Time: Sat Jul 05 08:34:54 EDT 2025

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

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

Back to the top