01: /* uDig - User Friendly Desktop Internet GIS client
02: * http://udig.refractions.net
03: * (C) 2004, Refractions Research Inc.
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation;
08: * version 2.1 of the License.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: */
15: package net.refractions.udig.internal.ui;
16:
17: import org.eclipse.swt.dnd.DropTargetEvent;
18:
19: /**
20: * Implementations provide the target object for the Drag and drop code.
21: * <p>A provider is used by the drop adapters to determine what the target object is</p>
22: *
23: * @author jones
24: * @since 1.1.0
25: */
26: public interface IDropTargetProvider {
27: /**
28: * Returns the object that the dragged object will be dropped on.
29: * @param event TODO
30: * @param event the drag and drop event.
31: */
32: Object getTarget(DropTargetEvent event);
33: }
|