Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Runtime

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.
 
Method Summary
  IWorkbenchPart getActivePart ()
          Returns the active IWorkbenchPart associated with the drop target viewer.
  Point getCurrentLocation ()
          Returns the coordinates of the current location of the mouse.
 java.lang.Object getCurrentTarget ()
          Returns the current target on the drop target viewer
 int getRelativeLocation ()
          Constant describing the position of the cursor relative to the target object
  Control getViewerControl ()
          Returns the control associated with the drop target viewer.
 

Field Detail

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
Method Detail

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

Runtime

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire