# HG changeset patch # User Jacob Carlborg # Date 1230666755 -3600 # Node ID bc175cd0484adde579b3b9d6af284eaf404898b5 # Parent 52007db1276d35d27f3c32672caafac6118c03db Ported dwt.dnd.DragSourceEffect diff -r 52007db1276d -r bc175cd0484a dwt/dnd/DragSourceEffect.d --- a/dwt/dnd/DragSourceEffect.d Tue Dec 30 20:51:17 2008 +0100 +++ b/dwt/dnd/DragSourceEffect.d Tue Dec 30 20:52:35 2008 +0100 @@ -7,6 +7,9 @@ * * Contributors: * IBM Corporation - initial API and implementation + * + * Port to the D programming language: + * Jacob Carlborg *******************************************************************************/ module dwt.dnd.DragSourceEffect; @@ -15,6 +18,8 @@ import dwt.DWT; import dwt.widgets.Control; +import dwt.dnd.DragSourceAdapter; + /** * This class provides default implementations to display a drag source * effect during a drag and drop operation. The current implementation @@ -38,7 +43,7 @@ * * @since 3.3 */ -public class DragSourceEffect extends DragSourceAdapter { +public class DragSourceEffect : DragSourceAdapter { Control control = null; /** @@ -50,7 +55,7 @@ *
  • ERROR_NULL_ARGUMENT - if the control is null
  • * */ - public DragSourceEffect(Control control) { + public this(Control control) { if (control is null) DWT.error(DWT.ERROR_NULL_ARGUMENT); this.control = control; }