1 11 package org.eclipse.ui.views.navigator; 12 13 import org.eclipse.jface.viewers.ISelection; 14 import org.eclipse.swt.dnd.TransferData; 15 16 26 public class LocalSelectionTransfer extends 27 org.eclipse.jface.util.LocalSelectionTransfer { 28 29 private static final LocalSelectionTransfer INSTANCE = new LocalSelectionTransfer(); 30 31 38 private org.eclipse.jface.util.LocalSelectionTransfer jfaceTransfer = org.eclipse.jface.util.LocalSelectionTransfer 39 .getTransfer(); 40 41 44 private LocalSelectionTransfer() { 45 } 46 47 52 public static LocalSelectionTransfer getInstance() { 53 return INSTANCE; 54 } 55 56 61 public ISelection getSelection() { 62 return jfaceTransfer.getSelection(); 63 } 64 65 70 public long getSelectionSetTime() { 71 return jfaceTransfer.getSelectionSetTime(); 72 } 73 74 79 public void setSelection(ISelection s) { 80 jfaceTransfer.setSelection(s); 81 } 82 83 88 public void setSelectionSetTime(long time) { 89 jfaceTransfer.setSelectionSetTime(time); 90 } 91 92 95 public void javaToNative(Object object, TransferData transferData) { 96 jfaceTransfer.javaToNative(object, transferData); 97 } 98 99 102 public Object nativeToJava(TransferData transferData) { 103 return jfaceTransfer.nativeToJava(transferData); 104 } 105 } 106 | Popular Tags |