|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.dnd.DropTargetAdapter
org.eclipse.jface.viewers.ViewerDropAdapter
org.eclipse.ui.part.PluginDropAdapter
org.eclipse.ui.views.navigator.NavigatorDropAdapter
Implements drop behaviour for drag and drop operations that land on the resource navigator.
Field Summary |
---|
Fields inherited from class org.eclipse.ui.part.PluginDropAdapter |
---|
ATT_CLASS |
Fields inherited from class org.eclipse.jface.viewers.ViewerDropAdapter |
---|
LOCATION_AFTER, LOCATION_BEFORE, LOCATION_NONE, LOCATION_ON |
Fields inherited from interface org.eclipse.ui.dialogs.IOverwriteQuery |
---|
ALL, CANCEL, NO, NO_ALL, YES |
Constructor Summary | |
---|---|
NavigatorDropAdapter(StructuredViewer viewer)
Constructs a new drop adapter. |
Method Summary | |
---|---|
void |
dragEnter(DropTargetEvent event)
This implementation of dragEnter permits the default
operation defined in event.detail to be performed on the current data type
defined in event.currentDataType .
|
boolean |
performDrop(Object data)
Perform the drop. |
String |
queryOverwrite(String pathString)
Returns one of the return code constants declared on this interface, indicating whether the entity represented by the passed String should be overwritten. |
boolean |
validateDrop(Object target,
int dragOperation,
TransferData transferType)
This method is used to notify the action that some aspect of the drop operation has changed. |
Methods inherited from class org.eclipse.ui.part.PluginDropAdapter |
---|
drop, getCurrentTransfer, getPluginAdapter |
Methods inherited from class org.eclipse.jface.viewers.ViewerDropAdapter |
---|
determineLocation, determineTarget, 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 |
Constructor Detail |
public NavigatorDropAdapter(StructuredViewer viewer)
viewer
- the navigator's viewerMethod Detail |
public void dragEnter(DropTargetEvent event)
DropTargetAdapter
dragEnter
permits the default
operation defined in event.detail
to be performed on the current data type
defined in event.currentDataType
.
For additional information see DropTargetListener.dragEnter
.
dragEnter
in interface DropTargetListener
dragEnter
in class ViewerDropAdapter
public boolean performDrop(Object data)
performDrop
in class PluginDropAdapter
DropTargetListener.drop(org.eclipse.swt.dnd.DropTargetEvent)
public String queryOverwrite(String pathString)
IOverwriteQuery
This method may be called from a non-UI thread, in which case this method must run the query in a sync exec in the UI thread, if it needs to query the user.
queryOverwrite
in interface IOverwriteQuery
pathString
- the path representing the entity to be overwritten
public boolean validateDrop(Object target, int dragOperation, TransferData transferType)
validateDrop
in class PluginDropAdapter
|
Eclipse Platform Release 3.1 |
|||||||||||
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, 2005. All rights reserved.