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()
DNDProvider
drag support
for the viewer.getDragOperations
in interface DNDProvider
public org.eclipse.swt.dnd.Transfer[] getDragTransferTypes()
DNDProvider
drag support
for the viewer.getDragTransferTypes
in interface DNDProvider
transfer types
public org.eclipse.swt.dnd.DragSourceListener getDragListener(org.eclipse.jface.viewers.TreeViewer treeViewer)
DNDProvider
DragSourceListener
used to setup the
drag support
for the viewer.getDragListener
in interface DNDProvider
treeViewer
- the treeviewerpublic int getDropOperations()
DNDProvider
drop support
for the viewer.getDropOperations
in interface DNDProvider
public org.eclipse.swt.dnd.Transfer[] getDropTransferTypes()
DNDProvider
drop support
for the viewer.getDropTransferTypes
in interface DNDProvider
transfer types
public org.eclipse.swt.dnd.DropTargetListener getDropListener(org.eclipse.emf.edit.domain.EditingDomain editingDomain, org.eclipse.jface.viewers.TreeViewer treeViewer)
DNDProvider
DragSourceListener
used to setup the
drop support
for the viewer.getDropListener
in interface DNDProvider
editingDomain
- the editing domaintreeViewer
- the treeviewerprotected int getDNDOperations()
getDragOperations()
and getDragOperations()
.protected org.eclipse.swt.dnd.Transfer[] getDNDTransferTypes()
getDragTransferTypes()
and getDropTransferTypes()
.public boolean hasDND()
DNDProvider
hasDND
in interface DNDProvider
true
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.