1
|
/*******************************************************************************
|
2
|
* Copyright (c) 2006 IBM Corporation and others.
|
3
|
* All rights reserved. This program and the accompanying materials
|
4
|
* are made available under the terms of the Eclipse Public License v1.0
|
5
|
* which accompanies this distribution, and is available at
|
6
|
* http://www.eclipse.org/legal/epl-v10.html
|
7
|
*
|
8
|
* Contributors:
|
9
|
* IBM Corporation - initial API and implementation
|
10
|
******************************************************************************/
|
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
|
/**
|
22
|
* A Skeleton implementation of {@link CommonDropAdapterAssistant}.
|
23
|
*
|
24
|
* @since 3.2
|
25
|
*
|
26
|
*/
|
27
|
public class SkeletonCommonDropAssistant extends CommonDropAdapterAssistant {
|
28
|
|
29
|
/**
|
30
|
* The singleton instance.
|
31
|
*/
|
32
|
public static final SkeletonCommonDropAssistant INSTANCE = new SkeletonCommonDropAssistant();
|
33
|
|
34
|
private SkeletonCommonDropAssistant() {
|
35
|
}
|
36
|
|
37
|
/*
|
38
|
* (non-Javadoc)
|
39
|
*
|
40
|
* @see org.eclipse.ui.navigator.CommonDropAdapterAssistant#handleDrop(org.eclipse.ui.navigator.CommonDropAdapter,
|
41
|
* org.eclipse.swt.dnd.DropTargetEvent, java.lang.Object)
|
42
|
*/
|
43
|
public IStatus handleDrop(CommonDropAdapter aDropAdapter,
|
44
|
DropTargetEvent aDropTargetEvent, Object aTarget) {
|
45
|
return Status.CANCEL_STATUS;
|
46
|
}
|
47
|
|
48
|
/*
|
49
|
* (non-Javadoc)
|
50
|
*
|
51
|
* @see org.eclipse.ui.navigator.CommonDropAdapterAssistant#validateDrop(java.lang.Object,
|
52
|
* int, org.eclipse.swt.dnd.TransferData)
|
53
|
*/
|
54
|
public IStatus validateDrop(Object target, int operation,
|
55
|
TransferData transferType) {
|
56
|
return Status.CANCEL_STATUS;
|
57
|
}
|
58
|
|
59
|
// /*
|
60
|
// * (non-Javadoc)
|
61
|
// *
|
62
|
// * @see
|
63
|
// org.eclipse.ui.navigator.CommonDropAdapterAssistant#findSupportedTransferData(org.eclipse.swt.dnd.TransferData[])
|
64
|
// */
|
65
|
// public TransferData findSupportedTransferData(
|
66
|
// TransferData[] theAvailableTransferData) {
|
67
|
//
|
68
|
// return null;
|
69
|
// }
|
70
|
|
71
|
}
|