public class DefaultDNDProvider extends Object implements DNDProvider
DNDProvider. This will support local transfers for copy, move and link operations
in an EMF environment.| Constructor and Description |
|---|
DefaultDNDProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDNDOperations()
The drag&drop operations which will be returned by
getDragOperations() and getDragOperations(). |
protected org.eclipse.swt.dnd.Transfer[] |
getDNDTransferTypes()
The transfers which will be returned
getDragTransferTypes() and getDropTransferTypes(). |
org.eclipse.swt.dnd.DragSourceListener |
getDragListener(org.eclipse.jface.viewers.TreeViewer treeViewer)
Returns the
DragSourceListener used to setup the
drag support for the viewer. |
int |
getDragOperations()
Returns the drag operations bits used to setup the
drag support for the viewer. |
org.eclipse.swt.dnd.Transfer[] |
getDragTransferTypes()
Returns the drag transfer types used to setup the
drag support for the viewer. |
org.eclipse.swt.dnd.DropTargetListener |
getDropListener(org.eclipse.emf.edit.domain.EditingDomain editingDomain,
org.eclipse.jface.viewers.TreeViewer treeViewer)
Returns the
DragSourceListener used to setup the
drop support for the viewer. |
int |
getDropOperations()
Returns the drag operations bits used to setup the
drop support for the viewer. |
org.eclipse.swt.dnd.Transfer[] |
getDropTransferTypes()
Returns the drag transfer types used to setup the
drop support for the viewer. |
boolean |
hasDND()
Whether DND support should be added to the tree.
|
public int getDragOperations()
DNDProviderdrag support for the viewer.getDragOperations in interface DNDProviderpublic org.eclipse.swt.dnd.Transfer[] getDragTransferTypes()
DNDProviderdrag support for the viewer.getDragTransferTypes in interface DNDProvidertransfer typespublic org.eclipse.swt.dnd.DragSourceListener getDragListener(org.eclipse.jface.viewers.TreeViewer treeViewer)
DNDProviderDragSourceListener used to setup the
drag support for the viewer.getDragListener in interface DNDProvidertreeViewer - the treeviewerpublic int getDropOperations()
DNDProviderdrop support for the viewer.getDropOperations in interface DNDProviderpublic org.eclipse.swt.dnd.Transfer[] getDropTransferTypes()
DNDProviderdrop support for the viewer.getDropTransferTypes in interface DNDProvidertransfer typespublic org.eclipse.swt.dnd.DropTargetListener getDropListener(org.eclipse.emf.edit.domain.EditingDomain editingDomain,
org.eclipse.jface.viewers.TreeViewer treeViewer)
DNDProviderDragSourceListener used to setup the
drop support for the viewer.getDropListener in interface DNDProvidereditingDomain - the editing domaintreeViewer - the treeviewerprotected int getDNDOperations()
getDragOperations() and getDragOperations().protected org.eclipse.swt.dnd.Transfer[] getDNDTransferTypes()
getDragTransferTypes() and getDropTransferTypes().public boolean hasDND()
DNDProviderhasDND in interface DNDProvidertrue if DND will be added, based on the other methods of this interface, or
false if DND should not be addedCopyright © 2016. All rights reserved.