changeset 111:cbefbb00a6c9

Ported dwt.dnd.Transfer
author Jacob Carlborg <doob@me.com>
date Wed, 31 Dec 2008 15:01:56 +0100
parents 2fb76eb49f04
children a84f60dde47e
files dwt/dnd/Transfer.d dwt/dnd/TransferData.d
diffstat 2 files changed, 14 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dwt/dnd/Transfer.d	Wed Dec 31 15:00:47 2008 +0100
+++ b/dwt/dnd/Transfer.d	Wed Dec 31 15:01:56 2008 +0100
@@ -7,11 +7,16 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ *     
+ * Port to the D programming language:
+ *     Jacob Carlborg <doob@me.com>
  *******************************************************************************/
 module dwt.dnd.Transfer;
 
 import dwt.dwthelper.utils;
 
+import dwt.dnd.TransferData;
+
  
 /**
  * <code>Transfer</code> provides a mechanism for converting between a java 
@@ -30,7 +35,12 @@
  */
 public abstract class Transfer {
 
-static String[] TYPES = new String[4];
+static String[] TYPES;
+
+static this ()
+{
+    TYPES = new String[4];
+}
 
 /**
  * Returns a list of the platform specific data types that can be converted using 
--- a/dwt/dnd/TransferData.d	Wed Dec 31 15:00:47 2008 +0100
+++ b/dwt/dnd/TransferData.d	Wed Dec 31 15:01:56 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.TransferData;