The Drag and Drop example shows the various SWT data transfer types in use. The example can drag and drop using Text, RTF, HTML and File transfer types.
Follow the SWT standalone examples setup instructions to install and run the example from your workspace.
The "Main" class is org.eclipse.swt.examples.dnd.DNDExample
.
This example can also be run using the Example Launcher. Select the Drag and Drop item from the Standalone category and click Run.