changeset 112:a84f60dde47e

Ported dwt.dnd.TreeDragSourceEffect
author Jacob Carlborg <doob@me.com>
date Wed, 31 Dec 2008 15:02:49 +0100
parents cbefbb00a6c9
children 2d6116ea306e
files dwt/dnd/TreeDragSourceEffect.d
diffstat 1 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/dnd/TreeDragSourceEffect.d	Wed Dec 31 15:01:56 2008 +0100
+++ b/dwt/dnd/TreeDragSourceEffect.d	Wed Dec 31 15:02:49 2008 +0100
@@ -7,6 +7,9 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ *     
+ * Port to the D programming language:
+ *     Jacob Carlborg <doob@me.com>
  *******************************************************************************/
 module dwt.dnd.TreeDragSourceEffect;
 
@@ -14,6 +17,8 @@
 
 import dwt.widgets.Tree;
 
+import dwt.dnd.DragSourceEffect;
+
 /**
  * This class provides default implementations to display a source image
  * when a drag is initiated from a <code>Tree</code>.
@@ -31,14 +36,14 @@
  * 
  * @since 3.3
  */
-public class TreeDragSourceEffect extends DragSourceEffect {
+public class TreeDragSourceEffect : DragSourceEffect {
     /**
      * Creates a new <code>TreeDragSourceEffect</code> to handle drag effect 
      * from the specified <code>Tree</code>.
      *
      * @param tree the <code>Tree</code> that the user clicks on to initiate the drag
      */
-    public TreeDragSourceEffect(Tree tree) {
+    public this(Tree tree) {
         super(tree);
     }
 }