1 11 package org.eclipse.swt.dnd; 12 13 14 27 public class RTFTransfer extends ByteArrayTransfer { 28 29 private static RTFTransfer _instance = new RTFTransfer(); 30 private static final String TYPENAME1 = "text/rtf\0"; 31 private static final int TYPEID1 = registerType(TYPENAME1); 32 private static final String TYPENAME2 = "TEXT/RTF\0"; 33 private static final int TYPEID2 = registerType(TYPENAME2); 34 private static final String TYPENAME3 = "application/rtf\0"; 35 private static final int TYPEID3 = registerType(TYPENAME3); 36 37 private RTFTransfer() { 38 } 39 44 public static RTFTransfer getInstance () { 45 return _instance; 46 } 47 56 public void javaToNative (Object object, TransferData transferData){ 57 } 58 68 public Object nativeToJava(TransferData transferData){ 69 return null; 70 } 71 protected String [] getTypeNames(){ 72 return new String []{TYPENAME1, TYPENAME2, TYPENAME3}; 73 } 74 protected int[] getTypeIds(){ 75 return new int[]{TYPEID1, TYPEID2, TYPEID3}; 76 } 77 } 78 | Popular Tags |