1 11 package org.eclipse.swt.dnd; 12 13 14 import org.eclipse.swt.internal.win32.*; 15 16 28 public abstract class Transfer { 29 30 39 abstract public TransferData[] getSupportedTypes(); 40 41 52 abstract public boolean isSupportedType(TransferData transferData); 53 54 61 abstract protected int[] getTypeIds(); 62 63 70 abstract protected String [] getTypeNames(); 71 72 103 abstract protected void javaToNative (Object object, TransferData transferData); 104 105 116 abstract protected Object nativeToJava(TransferData transferData); 117 118 132 public static int registerType(String formatName) { 133 TCHAR chFormatName = new TCHAR(0, formatName, true); 137 return OS.RegisterClipboardFormat(chFormatName); 138 } 139 140 149 protected boolean validate(Object object) { 150 return true; 151 } 152 } 153 | Popular Tags |