public class TextGridObjectTransfer extends ByteArrayTransfer
Modifier | Constructor and Description |
---|---|
protected |
TextGridObjectTransfer()
Only the singleton instance of this class may be used.
|
Modifier and Type | Method and Description |
---|---|
ISelection |
getCopiedSelection() |
ArrayList<String> |
getCopiedSelectionAsStringList() |
ArrayList<URI> |
getCopiedSelectionAsUriList() |
ArrayList<URI> |
getSelection() |
long |
getSelectionSetTime()
Returns the time when the selection operation this transfer is associated
with was started.
|
static TextGridObjectTransfer |
getTransfer()
Returns the singleton.
|
protected int[] |
getTypeIds()
Returns the type id used to identify this transfer.
|
protected String[] |
getTypeNames()
Returns the type name used to identify this transfer.
|
void |
javaToNative(Object object,
TransferData transferData)
Overrides org.eclipse.swt.dnd.ByteArrayTransfer#javaToNative(Object,
TransferData).
|
Object |
nativeToJava(TransferData transferData)
Overrides
org.eclipse.swt.dnd.ByteArrayTransfer#nativeToJava(TransferData).
|
void |
setCopiedSelection(ISelection copiedSelection) |
void |
setSelection(ArrayList<URI> selection) |
void |
setSelectionSetTime(long time)
Sets the time when the selection operation this transfer is associated
with was started.
|
getSupportedTypes, isSupportedType
registerType, validate
protected TextGridObjectTransfer()
public static TextGridObjectTransfer getTransfer()
protected int[] getTypeIds()
getTypeIds
in class Transfer
protected String[] getTypeNames()
getTypeNames
in class Transfer
public void javaToNative(Object object, TransferData transferData)
javaToNative
in class ByteArrayTransfer
ByteArrayTransfer.javaToNative(java.lang.Object,
org.eclipse.swt.dnd.TransferData)
public ISelection getCopiedSelection()
public void setCopiedSelection(ISelection copiedSelection)
public Object nativeToJava(TransferData transferData)
nativeToJava
in class ByteArrayTransfer
ByteArrayTransfer.nativeToJava(TransferData)
public long getSelectionSetTime()
TypedEvent.time
public void setSelectionSetTime(long time)
setSelectionTime(event.time & 0xFFFF)
time
- the time when the selection operation was startedTypedEvent.time