Package org.openjump.core.ui.plugin.file
Class FileDragDropPlugin
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- org.openjump.core.ui.plugin.AbstractUiPlugIn
-
- org.openjump.core.ui.plugin.file.FileDragDropPlugin
-
- All Implemented Interfaces:
EnableChecked,Iconified,PlugIn,Recordable,ShortcutEnabled,DropTargetListener,ActionListener,EventListener
public class FileDragDropPlugin extends AbstractUiPlugIn implements DropTargetListener
-
-
Field Summary
Fields Modifier and Type Field Description static Set<String>PROJECT_EXTENSIONS-
Fields inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
enableCheck, workbenchContext
-
Fields inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
shortcutKeys, shortcutModifiers
-
-
Constructor Summary
Constructors Constructor Description FileDragDropPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddragEnter(DropTargetDragEvent event)voiddragExit(DropTargetEvent event)voiddragOver(DropTargetDragEvent event)voiddrop(DropTargetDropEvent event)voiddropActionChanged(DropTargetDragEvent event)voidinitialize(PlugInContext context)Initialise plug-in.-
Methods inherited from class org.openjump.core.ui.plugin.AbstractUiPlugIn
actionPerformed, execute, getEnableCheck, getIcon, getName, getToolTip, isRollingBackInvalidEdits, reportNothingToUndoYet, setWorkbenchContext
-
Methods inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
addParameter, createName, execute, execute, getBooleanParam, getContext, getDoubleParam, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, getWorkbenchContext, isShortcutEnabled, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
-
-
-
-
Method Detail
-
initialize
public void initialize(PlugInContext context) throws Exception
Initialise plug-in.- Specified by:
initializein interfacePlugIn- Overrides:
initializein classAbstractUiPlugIn- Parameters:
context- The plug-in context.- Throws:
Exception- If there was an error initialising the plug-in.
-
dragEnter
public void dragEnter(DropTargetDragEvent event)
- Specified by:
dragEnterin interfaceDropTargetListener
-
dragExit
public void dragExit(DropTargetEvent event)
- Specified by:
dragExitin interfaceDropTargetListener
-
dragOver
public void dragOver(DropTargetDragEvent event)
- Specified by:
dragOverin interfaceDropTargetListener
-
drop
public void drop(DropTargetDropEvent event)
- Specified by:
dropin interfaceDropTargetListener
-
dropActionChanged
public void dropActionChanged(DropTargetDragEvent event)
- Specified by:
dropActionChangedin interfaceDropTargetListener
-
-