comparison dwt/dnd/TreeDragSourceEffect.d @ 45:d8635bb48c7c

Merge with SWT 3.5
author Jacob Carlborg <doob@me.com>
date Mon, 01 Dec 2008 17:07:00 +0100
parents 1a8b3cb347e0
children a84f60dde47e
comparison
equal deleted inserted replaced
44:ca5e494f2bbf 45:d8635bb48c7c
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2007 IBM Corporation and others. 2 * Copyright (c) 2007, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at 5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html 6 * http://www.eclipse.org/legal/epl-v10.html
7 * 7 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/ 10 *******************************************************************************/
11 module dwt.dnd; 11 module dwt.dnd.TreeDragSourceEffect;
12 12
13 import dwt.widgets.*; 13 import dwt.dwthelper.utils;
14
15 import dwt.widgets.Tree;
14 16
15 /** 17 /**
16 * This class provides default implementations to display a source image 18 * This class provides default implementations to display a source image
17 * when a drag is initiated from a <code>Tree</code>. 19 * when a drag is initiated from a <code>Tree</code>.
18 * 20 *
23 * Subclasses that override any methods of this class must call the corresponding 25 * Subclasses that override any methods of this class must call the corresponding
24 * <code>super</code> method to get the default drag under effect implementation. 26 * <code>super</code> method to get the default drag under effect implementation.
25 * 27 *
26 * @see DragSourceEffect 28 * @see DragSourceEffect
27 * @see DragSourceEvent 29 * @see DragSourceEvent
30 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
28 * 31 *
29 * @since 3.3 32 * @since 3.3
30 */ 33 */
31 public class TreeDragSourceEffect : DragSourceEffect { 34 public class TreeDragSourceEffect extends DragSourceEffect {
32 /** 35 /**
33 * Creates a new <code>TreeDragSourceEffect</code> to handle drag effect 36 * Creates a new <code>TreeDragSourceEffect</code> to handle drag effect
34 * from the specified <code>Tree</code>. 37 * from the specified <code>Tree</code>.
35 * 38 *
36 * @param tree the <code>Tree</code> that the user clicks on to initiate the drag 39 * @param tree the <code>Tree</code> that the user clicks on to initiate the drag
37 */ 40 */
38 public this(Tree tree) { 41 public TreeDragSourceEffect(Tree tree) {
39 super(tree); 42 super(tree);
40 } 43 }
41 } 44 }