comparison dwt/dnd/Transfer.d @ 111:cbefbb00a6c9

Ported dwt.dnd.Transfer
author Jacob Carlborg <doob@me.com>
date Wed, 31 Dec 2008 15:01:56 +0100
parents a7e41c09df9e
children 2e671fa40eec
comparison
equal deleted inserted replaced
110:2fb76eb49f04 111:cbefbb00a6c9
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 *
11 * Port to the D programming language:
12 * Jacob Carlborg <doob@me.com>
10 *******************************************************************************/ 13 *******************************************************************************/
11 module dwt.dnd.Transfer; 14 module dwt.dnd.Transfer;
12 15
13 import dwt.dwthelper.utils; 16 import dwt.dwthelper.utils;
17
18 import dwt.dnd.TransferData;
14 19
15 20
16 /** 21 /**
17 * <code>Transfer</code> provides a mechanism for converting between a java 22 * <code>Transfer</code> provides a mechanism for converting between a java
18 * representation of data and a platform specific representation of data and 23 * representation of data and a platform specific representation of data and
28 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: DNDExample</a> 33 * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: DNDExample</a>
29 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> 34 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
30 */ 35 */
31 public abstract class Transfer { 36 public abstract class Transfer {
32 37
33 static String[] TYPES = new String[4]; 38 static String[] TYPES;
39
40 static this ()
41 {
42 TYPES = new String[4];
43 }
34 44
35 /** 45 /**
36 * Returns a list of the platform specific data types that can be converted using 46 * Returns a list of the platform specific data types that can be converted using
37 * this transfer agent. 47 * this transfer agent.
38 * 48 *