org.eclipse.gmf.runtime.common.ui.services.dnd.drop
Interface IDropTargetContext
-
All Known Implementing Classes:
-
DropTargetContext
-
public interface IDropTargetContext
Interface that contains the context information relevant to the drop target.
Field Summary
|
static int
|
LOCATION_AFTER
Constant describing the position of the cursor relative to the target
object. |
static int
|
LOCATION_BEFORE
Constant describing the position of the cursor relative to the target
object. |
static int
|
LOCATION_NONE
Constant describing the position of the cursor relative to the target
object. |
static int
|
LOCATION_ON
Constant describing the position of the cursor relative to the target
object. |
LOCATION_BEFORE
static final int LOCATION_BEFORE
- Constant describing the position of the cursor relative to the target
object. This means the mouse is positioned slightly before the target.
-
See Also:
-
getRelativeLocation()
,
Constant Field Values
LOCATION_AFTER
static final int LOCATION_AFTER
- Constant describing the position of the cursor relative to the target
object. This means the mouse is positioned slightly after the target.
-
See Also:
-
getRelativeLocation()
,
Constant Field Values
LOCATION_ON
static final int LOCATION_ON
- Constant describing the position of the cursor relative to the target
object. This means the mouse is positioned directly on the target.
-
See Also:
-
getRelativeLocation()
,
Constant Field Values
LOCATION_NONE
static final int LOCATION_NONE
- Constant describing the position of the cursor relative to the target
object. This means the mouse is not positioned over or near any valid
target.
-
See Also:
-
getRelativeLocation()
,
Constant Field Values
getViewerControl
Control getViewerControl()
- Returns the control associated with the drop target viewer.
-
-
Returns:
- Control
getActivePart
IWorkbenchPart getActivePart()
- Returns the active
IWorkbenchPart
associated with the drop
target viewer.
-
-
Returns:
- Returns the active
IWorkbenchPart
getCurrentTarget
java.lang.Object getCurrentTarget()
- Returns the current target on the drop target viewer
-
-
Returns:
- Returns the current target on the drop target viewer
getCurrentLocation
Point getCurrentLocation()
- Returns the coordinates of the current location of the mouse.
-
-
Returns:
- Point the location
getRelativeLocation
int getRelativeLocation()
- Constant describing the position of the cursor relative to the target
object
-
-
Returns:
- int the location
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.