|
Eclipse Platform Release 3.2 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
The common drop adapter provides a handle to useful
information for ICommonDropActionDelegates.
This interface is particularly unstable as of 3.2M4.
EXPERIMENTAL. This class or interface has been added as part of a work in progress. There is a guarantee neither that this API will work nor that it will remain the same. Please do not use this API without consulting with the Platform/UI team.
Clients may implement this interface.
| Method Summary | |
|---|---|
int |
getCurrentLocation()
Returns a constant describing the position of the mouse relative to the target (before, on, or after the target. |
int |
getCurrentOperation()
Returns the current operation. |
Object |
getCurrentTarget()
Returns the target object currently under the mouse. |
TransferData |
getCurrentTransfer()
Return the current transfer data. |
boolean |
getFeedbackEnabled()
Returns whether visible insertion feedback should be presented to the user. |
Object |
getSelectedObject()
Returns the object currently selected by the viewer. |
Object |
getSelectedObject(TransferData transferType)
|
Object |
getSelectedObject(TransferData transferType,
Object data)
|
| Method Detail |
public Object getSelectedObject(TransferData transferType)
transferType -
public Object getSelectedObject(TransferData transferType,
Object data)
transferType - data - The data involved in the transfer.
public int getCurrentLocation()
LOCATION_* constants defined in this typepublic int getCurrentOperation()
DROP_* constant from class DNDDND.DROP_COPY,
DND.DROP_MOVE,
DND.DROP_LINK,
DND.DROP_NONEpublic Object getCurrentTarget()
public Object getSelectedObject()
null if either no object or
multiple objects are selectedpublic TransferData getCurrentTransfer()
public boolean getFeedbackEnabled()
Typical insertion feedback is the horizontal insertion bars that appear between adjacent items while dragging.
true if visual feedback is desired, and false if notViewerDropAdapter.getFeedbackEnabled()
|
Eclipse Platform Release 3.2 |
|||||||||||
| 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.