public class TransferDragListener extends DNDDragListener<Object>
drag listener
that can support
a viewer
to create and perform
transfers
of the dragged elements to target elements
.Modifier | Constructor and Description |
---|---|
protected |
TransferDragListener(StructuredViewer viewer) |
Modifier and Type | Method and Description |
---|---|
void |
dragFinished(DragSourceEvent event) |
protected IManagedContainer |
getContainer() |
protected Object |
getObject(IStructuredSelection selection) |
protected TransferUIProvider[] |
getUIProviders() |
static TransferDragListener |
support(StructuredViewer viewer) |
dragSetData, dragStart, getTransfers, getViewer, setTransfers
protected TransferDragListener(StructuredViewer viewer)
protected IManagedContainer getContainer()
protected TransferUIProvider[] getUIProviders()
protected Object getObject(IStructuredSelection selection)
getObject
in class DNDDragListener<Object>
public void dragFinished(DragSourceEvent event)
dragFinished
in interface DragSourceListener
dragFinished
in class DragSourceAdapter
public static TransferDragListener support(StructuredViewer viewer)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html