Help with Drag and drop [message #224322] |
Fri, 13 October 2006 18:47 |
Aniruddha Shevade 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
|
|
|
Powered by
FUDForum. Page generated in 0.03496 seconds