| |
|
| java.lang.Object org.netbeans.modules.openide.explorer.ExternalDragAndDrop
ExternalDragAndDrop | public class ExternalDragAndDrop (Code) | | Utilities to handle drag and drop events to/from other applications
author: S. Aubrecht |
Method Summary | |
public static Transferable | maybeAddExternalFileDnd(Multi multi) The default Transferable implementation for multi-object drag and drop operations is
ExTransferable.Multi. |
maybeAddExternalFileDnd | public static Transferable maybeAddExternalFileDnd(Multi multi)(Code) | | The default Transferable implementation for multi-object drag and drop operations is
ExTransferable.Multi. However it uses a custom DataFlavor which prevents drag and drop
of multiple files from the IDE to other applications.
This method checks whether the given Multi instance contains objects that support
DataFlavor.javaFileListFlavor and adds a separate Transferable instance for them.
Parameters: multi - Multi transferable The original Multi transferable if none of the inner transferables supportsjavaFileListFlavor. Otherwise it returns a new ExTransferable with the original Multitransferable and an additional Transferable with javaFileListFlavor that aggregatesall file objects from the Multi instance. |
|
|
|