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.extensions;
|
13
|
|
14
|
import org.eclipse.jface.viewers.IStructuredSelection;
|
15
|
import org.eclipse.swt.dnd.DragSourceEvent;
|
16
|
import org.eclipse.swt.dnd.Transfer;
|
17
|
import org.eclipse.ui.navigator.CommonDragAdapterAssistant;
|
18
|
|
19
|
/**
|
20
|
* A Skeleton implementation of {@link CommonDragAdapterAssistant}.
|
21
|
*
|
22
|
* @since 3.2
|
23
|
*
|
24
|
*/
|
25
|
public final class SkeletonCommonDragAssistant extends
|
26
|
CommonDragAdapterAssistant {
|
27
|
|
28
|
/**
|
29
|
* The singleton instance.
|
30
|
*/
|
31
|
public static final SkeletonCommonDragAssistant INSTANCE = new SkeletonCommonDragAssistant();
|
32
|
|
33
|
private static final Transfer[] NO_TRANSFER_TYPES = new Transfer[0];
|
34
|
|
35
|
private SkeletonCommonDragAssistant() {
|
36
|
}
|
37
|
|
38
|
/*
|
39
|
* (non-Javadoc)
|
40
|
*
|
41
|
* @see org.eclipse.ui.navigator.CommonDragAdapterAssistant#getSupportedTransferTypes()
|
42
|
*/
|
43
|
public Transfer[] getSupportedTransferTypes() {
|
44
|
return NO_TRANSFER_TYPES;
|
45
|
}
|
46
|
|
47
|
/*
|
48
|
* (non-Javadoc)
|
49
|
*
|
50
|
* @see org.eclipse.ui.navigator.CommonDragAdapterAssistant#setDragData(org.eclipse.swt.dnd.DragSourceEvent,
|
51
|
* org.eclipse.jface.viewers.IStructuredSelection)
|
52
|
*/
|
53
|
public boolean setDragData(DragSourceEvent anEvent,
|
54
|
IStructuredSelection aSelection) {
|
55
|
return false;
|
56
|
|
57
|
}
|
58
|
|
59
|
}
|