|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.swt.dnd.DropTargetAdapter org.eclipse.jface.viewers.ViewerDropAdapter org.eclipse.ui.part.PluginDropAdapter
Adapter for adding handling of the PluginTransfer drag and drop transfer type to a drop action.
This class may be instantiated or subclassed.
Field Summary | |
static String | ATT_CLASS
The extension point attribute that defines the drop action class. |
Fields inherited from class org.eclipse.jface.viewers.ViewerDropAdapter |
LOCATION_AFTER, LOCATION_BEFORE, LOCATION_NONE, LOCATION_ON |
Constructor Summary | |
PluginDropAdapter(StructuredViewer viewer)
Creates a plug-in drop adapter for the given viewer. |
Method Summary | |
void | drop(DropTargetEvent event)
This implementation of drop does nothing. |
protected TransferData | getCurrentTransfer()
Returns the current transfer. |
protected static IDropActionDelegate | getPluginAdapter(PluginTransferData data)
Loads the class that will perform the action associated with the given drop data. |
boolean | performDrop(Object data)
Performs any work associated with the drop. |
boolean | validateDrop(Object target,
int operation,
TransferData transferType)
The PluginDropAdapter implementation of this ViewerDropAdapter method is used to notify the action that some aspect of the drop operation has changed. |
Methods inherited from class org.eclipse.jface.viewers.ViewerDropAdapter |
determineLocation, determineTarget, dragEnter, dragOperationChanged, dragOver, dropAccept, getBounds, getCurrentLocation, getCurrentOperation, getCurrentTarget, getFeedbackEnabled, getSelectedObject, getViewer, handleException, setFeedbackEnabled, setScrollExpandEnabled |
Methods inherited from class org.eclipse.swt.dnd.DropTargetAdapter |
dragLeave |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ATT_CLASS
Constructor Detail |
public PluginDropAdapter(StructuredViewer viewer)
Method Detail |
public void drop(DropTargetEvent event)
protected TransferData getCurrentTransfer()
protected static IDropActionDelegate getPluginAdapter(PluginTransferData data) throws CoreException
public boolean performDrop(Object data)
Subclasses must implement this method to provide drop behavior.
public boolean validateDrop(Object target, int operation, TransferData transferType)
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.