Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Help with Drag and drop
Help with Drag and drop [message #224322] Fri, 13 October 2006 18:47
Aniruddha Shevade is currently offline Aniruddha ShevadeFriend
Messages: 9
Registered: July 2009
Junior Member
Hello
I am developing and editor using GEF. I want to support DND of items
selected in other views in the application.
For this I have added a DropTarget Listener to the GraphicalViewer of
the editor, and set the transfer type in the listener as
org.eclipse.jface.util.LocalSelectionTransfer.getTransfer().
This allows me to handle drops from within any item selected from a view.

However I need to do the following
1) Based on the Type of the item being dragged, enable / diable the
dragging.

How Can I conditionally enable DND ? There semems to be a method called
isEanbled() but it does not seem to be havin gany knowledge about the
data being dropped

Any help is greatly appreciated

thanks
- Ani
Previous Topic:Treeviewer
Next Topic:eclipse RCP and draw2d
Goto Forum:
  


Current Time: Thu Dec 09 04:42:22 GMT 2021

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

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

Back to the top