01: /*******************************************************************************
02: * Copyright (c) 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: ******************************************************************************/package org.eclipse.ui.internal.navigator.extensions;
11:
12: import org.eclipse.jface.viewers.IStructuredSelection;
13: import org.eclipse.swt.dnd.DragSourceEvent;
14: import org.eclipse.swt.dnd.Transfer;
15: import org.eclipse.ui.navigator.CommonDragAdapterAssistant;
16:
17: /**
18: * A Skeleton implementation of {@link CommonDragAdapterAssistant}.
19: *
20: * @since 3.2
21: *
22: */
23: public final class SkeletonCommonDragAssistant extends
24: CommonDragAdapterAssistant {
25:
26: /**
27: * The singleton instance.
28: */
29: public static final SkeletonCommonDragAssistant INSTANCE = new SkeletonCommonDragAssistant();
30:
31: private static final Transfer[] NO_TRANSFER_TYPES = new Transfer[0];
32:
33: private SkeletonCommonDragAssistant() {
34: }
35:
36: /*
37: * (non-Javadoc)
38: *
39: * @see org.eclipse.ui.navigator.CommonDragAdapterAssistant#getSupportedTransferTypes()
40: */
41: public Transfer[] getSupportedTransferTypes() {
42: return NO_TRANSFER_TYPES;
43: }
44:
45: /*
46: * (non-Javadoc)
47: *
48: * @see org.eclipse.ui.navigator.CommonDragAdapterAssistant#setDragData(org.eclipse.swt.dnd.DragSourceEvent,
49: * org.eclipse.jface.viewers.IStructuredSelection)
50: */
51: public boolean setDragData(DragSourceEvent anEvent,
52: IStructuredSelection aSelection) {
53: return false;
54:
55: }
56:
57: }
|