1 /******************************************************************************* 2 * Copyright (c) 2000, 2004 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 package org.eclipse.swt.dnd; 12 13 14 /** 15 * This adapter class provides default implementations for the 16 * methods described by the <code>DragSourceListener</code> interface. 17 * 18 * <p>Classes that wish to deal with <code>DragSourceEvent</code>s can 19 * extend this class and override only the methods which they are 20 * interested in.</p> 21 * 22 * @see DragSourceListener 23 * @see DragSourceEvent 24 */ 25 public class DragSourceAdapter implements DragSourceListener { 26 /** 27 * This implementation of <code>dragStart</code> permits the drag operation to start. 28 * For additional information see <code>DragSourceListener.dragStart</code>. 29 */ 30 public void dragStart(DragSourceEvent event){} 31 /** 32 * This implementation of <code>dragFinished</code> does nothing. 33 * For additional information see <code>DragSourceListener.dragFinished</code>. 34 */ 35 public void dragFinished(DragSourceEvent event){} 36 /** 37 * This implementation of <code>dragSetData</code> does nothing. 38 * For additional information see <code>DragSourceListener.dragSetData</code>. 39 */ 40 public void dragSetData(DragSourceEvent event){} 41 } 42