01: /**
02: *
03: */package net.refractions.udig.internal.ui;
04:
05: import org.eclipse.swt.dnd.TransferData;
06:
07: /**
08: * Many of the uDig Transfer objects can behave differently depending on how a user sets the workspace
09: * preferences. For example a user may want the FilterTextTransfer to drag and drop all the selected features
10: * or the user may want to drag/drop/cut/paste the filter in XML.
11: *
12: */
13: public interface TransferStrategy {
14: /**
15: * This is called by the Transfer's javaToNative method.
16: * @see org.eclipse.swt.dnd.Transfer#javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)
17: */
18: public void javaToNative(Object object, TransferData transferData);
19:
20: /**
21: * This is called by the Transfer's nativeToJava method
22: * @see org.eclipse.swt.dnd.Transfer#nativeToJava(org.eclipse.swt.dnd.TransferData)
23: */
24: public Object nativeToJava(TransferData transferData);
25: }
|