public class ViewerDragSupport
extends java.lang.Object
DelegatingDragAdapter.| Constructor and Description |
|---|
ViewerDragSupport(org.eclipse.jface.viewers.StructuredViewer viewer)
Creates a drag support for the given viewer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDragSourceListener(org.eclipse.jface.util.TransferDragSourceListener listener)
Adds the given
TransferDragSourceListener. |
protected int |
getOperations()
Returns a bitwise OR of the supported drag and drop operation types.
|
void |
start()
Adds drag support to the viewer.
|
public ViewerDragSupport(org.eclipse.jface.viewers.StructuredViewer viewer)
viewer - not nullpublic void addDragSourceListener(org.eclipse.jface.util.TransferDragSourceListener listener)
TransferDragSourceListener.listener - not nulljava.lang.IllegalStateException - if already startedpublic void start()
java.lang.IllegalStateException - if already startedStructuredViewer.addDragSupport(int, org.eclipse.swt.dnd.Transfer[], org.eclipse.swt.dnd.DragSourceListener)protected int getOperations()
Default implementation returns DND.DROP_COPY | DND.DROP_MOVE |
DND.DROP_LINK.
Copyright (c) 2014, 2020 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0