The Clipboard example shows the various SWT clipboard transfer types in use. The example can cut, copy and paste 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.clipboard.ClipboardExample
.
This example can also be run using the Example Launcher. Select the Clipboard item from the Standalone category and click Run.