Skip to content

Commit 36ad6ce

Browse files
committed
Add String TypedTransfer::transferId() which returns null by default.
1 parent 1f2a3d8 commit 36ad6ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

durian-swt/src/main/java/com/diffplug/common/swt/dnd/TypedTransfer.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@
2323

2424
/** A strongly-typed custom transfer type. */
2525
public abstract class TypedTransfer<T> extends ByteArrayTransfer {
26+
/** The transfer id. */
27+
public @Nullable String transferId() {
28+
return null;
29+
}
30+
2631
public abstract T getValue(DropTargetEvent e);
2732

2833
public abstract void setValue(DragSourceEvent e, T value);

0 commit comments

Comments
 (0)