1 11 12 package org.eclipse.ui.internal.navigator.dnd; 13 14 import org.eclipse.core.runtime.IStatus; 15 import org.eclipse.core.runtime.Status; 16 import org.eclipse.swt.dnd.DropTargetEvent; 17 import org.eclipse.swt.dnd.TransferData; 18 import org.eclipse.ui.navigator.CommonDropAdapter; 19 import org.eclipse.ui.navigator.CommonDropAdapterAssistant; 20 21 27 public class SkeletonCommonDropAssistant extends CommonDropAdapterAssistant { 28 29 32 public static final SkeletonCommonDropAssistant INSTANCE = new SkeletonCommonDropAssistant(); 33 34 private SkeletonCommonDropAssistant() { 35 } 36 37 43 public IStatus handleDrop(CommonDropAdapter aDropAdapter, 44 DropTargetEvent aDropTargetEvent, Object aTarget) { 45 return Status.CANCEL_STATUS; 46 } 47 48 54 public IStatus validateDrop(Object target, int operation, 55 TransferData transferType) { 56 return Status.CANCEL_STATUS; 57 } 58 59 71 } 72 | Popular Tags |