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
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

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




Eclipse GMF Guide
Previous Page Home Next Page



Provides core support for the drag component of drag and drop.


Interface Summary
IDragSourceContext Interface that contains the context information relevant to the drag source.
IDragSourceListener Interface to be implemented by providers to handle drag source events
ITransferDragSourceListener Interface to be implemented by providers of transfer agents that are used by the drag source within drag/drop operations.

Class Summary
AbstractDragSourceListener Abstract parent of all the drag source listeners
DelegatingDragSourceAdapter This class delegates all the drag source events to the transfer drag source adapters.
DragSourceContext Concrete implementation of IDragSourceContext
SelectionDragAdapter Concrete implementation of the transfer drag source adapter for the selection transfer type.
TransferDragSourceAdapter Parent of all the transfer drag source adapters.

Package Description

Provides core support for the drag component of drag and drop. The two main types of classes in this package are those that pertain to the drag source, and those that pertain to adapting the transfer agent for the item to be dragged for use with the TransferAdapterProvider. See the schema documentation for transferAdapterProviders for more information.

The Drag Source

The AbstractDragSourceListener, which extends the IDragSourceListener for listening to drags, determines if the DragSourceContext is draggable. Drag providers should subclass the AbstractDragSourceListener and handle the DragSourceEvent.

The Drag Adapter

The TransferDragSourceAdapter implements the ITransferDragSourceListener interface. It adapts the ITransferAgent for use with the TransferAdapterProvider and notifies its IDragSourceListener array with DragSourceEvent notifications.

Package Specification

For more information on transferring data using Eclipse drag and drop, please see org.eclipse.swt.dnd.Transfer and org.eclipse.swt.dnd.TransferData.


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