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.TransferData;
18:
19: /**
20: * Makes public the validate method so that the udig DND framework can validate a transfer
21: *
22: * @author jones
23: * @since 1.0.0
24: */
25: public interface UDIGTransfer {
26: /**
27: * Returns true if the transfer can transfer to and from the object.
28: *
29: * @return true if the transfer can transfer to and from the object.
30: */
31: public boolean validate(Object object);
32:
33: /**
34: * @see org.eclipse.swt.dnd.Transfer#javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)
35: */
36: public void javaToNative(Object object, TransferData transferData);
37:
38: /**
39: * @see org.eclipse.swt.dnd.Transfer#nativeToJava(org.eclipse.swt.dnd.TransferData)
40: */
41: public Object nativeToJava(TransferData transferData);
42: }
|