Mercurial > projects > dwt-mac
diff dwt/dnd/DropTargetListener.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | e831403a80a9 |
children | 43123e716bda |
line wrap: on
line diff
--- a/dwt/dnd/DropTargetListener.d Tue Oct 21 15:20:04 2008 +0200 +++ b/dwt/dnd/DropTargetListener.d Mon Dec 01 17:07:00 2008 +0100 @@ -8,7 +8,9 @@ * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ -module dwt.dnd; +module dwt.dnd.DropTargetListener; + +import dwt.dwthelper.utils; import dwt.internal.DWTEventListener; @@ -33,7 +35,7 @@ * @see DropTargetEvent * */ -public interface DropTargetListener : DWTEventListener { +public interface DropTargetListener extends DWTEventListener { /** * The cursor has entered the drop target boundaries. @@ -176,9 +178,9 @@ * <pre><code> * public void dragOver(DropTargetEvent event) { * TextTransfer textTransfer = TextTransfer.getInstance(); - * String data = cast(String)textTransfer.nativeToJava(event.currentDataType); + * String data = (String)textTransfer.nativeToJava(event.currentDataType); * if (data !is null) { - * System.out.println("Data to be dropped is cast(Text)"+data); + * System.out.println("Data to be dropped is (Text)"+data); * } * }; * </code></pre>