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 Platform
Release 3.5

Interface TransferDragSourceListener

All Superinterfaces:
DragSourceListener, EventListener, org.eclipse.swt.internal.SWTEventListener

public interface TransferDragSourceListener
extends DragSourceListener

A TransferDragSourceListener is a DragSourceListener that can handle one type of SWT Transfer. The purpose of a TransferDragSourceListener is to:

  • Determine enablement for a drag operation. A TransferDragSourceListener will not be used in a drag operation if the DragSourceEvent#doit field is set to false in DragSourceListener#dragStart(DragSourceEvent).
  • Set data for a single type of drag and Transfer type.

A DelegatingDragAdapter allows these functions to be implemented separately for unrelated types of drags. DelegatingDragAdapter then combines the function of each TransferDragSourceListener, while allowing them to be implemented as if they were the only DragSourceListener.


Method Summary
  Transfer getTransfer ()
          Returns the Transfer type that this listener can provide data for.
Methods inherited from interface org.eclipse.swt.dnd. DragSourceListener
dragFinished, dragSetData, dragStart

Method Detail


Transfer getTransfer()
Returns the Transfer type that this listener can provide data for.

the Transfer associated with this listener

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

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