| org.eclipse.ui.part.PluginDropAdapter
PluginDropAdapter | public class PluginDropAdapter extends ViewerDropAdapter (Code) | | 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 | |
final public static String | ATT_CLASS The extension point attribute that defines the drop action class. |
Constructor Summary | |
public | PluginDropAdapter(StructuredViewer viewer) Creates a plug-in drop adapter for the given viewer. |
Method Summary | |
public void | drop(DropTargetEvent event) | 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. | public boolean | performDrop(Object data) | public 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. |
ATT_CLASS | final public static String ATT_CLASS(Code) | | The extension point attribute that defines the drop action class.
|
PluginDropAdapter | public PluginDropAdapter(StructuredViewer viewer)(Code) | | Creates a plug-in drop adapter for the given viewer.
Parameters: viewer - the viewer |
drop | public void drop(DropTargetEvent event)(Code) | | |
getCurrentTransfer | protected TransferData getCurrentTransfer()(Code) | | Returns the current transfer.
|
getPluginAdapter | protected static IDropActionDelegate getPluginAdapter(PluginTransferData data) throws CoreException(Code) | | Loads the class that will perform the action associated with the given drop
data.
Parameters: data - the drop data the viewer drop adapter |
performDrop | public boolean performDrop(Object data)(Code) | | See Also: ViewerDropAdapter.performDrop |
validateDrop | public boolean validateDrop(Object target, int operation, TransferData transferType)(Code) | | The PluginDropAdapter implementation of this
ViewerDropAdapter method is used to notify the action that some
aspect of the drop operation has changed. Subclasses may override.
|
|
|