Package org.eclipse.ui.views.navigator
Class LocalSelectionTransfer
java.lang.Object
org.eclipse.swt.dnd.Transfer
org.eclipse.swt.dnd.ByteArrayTransfer
org.eclipse.jface.util.LocalSelectionTransfer
org.eclipse.ui.views.navigator.LocalSelectionTransfer
Deprecated, for removal: This API element is subject to removal in a future version.
A LocalSelectionTransfer may be used for drag and drop operations within the
same instance of Eclipse. The selection is made available directly for use in
the DropTargetListener. dropAccept method. The DropTargetEvent passed to
dropAccept does not contain the drop data. The selection may be used for
validation purposes so that the drop can be aborted if appropriate. This
class is not intended to be subclassed.
- Since:
- 2.1
- Restriction:
- This class is not intended to be subclassed by clients.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalSelectionTransferDeprecated, for removal: This API element is subject to removal in a future version.Returns the singleton.Deprecated, for removal: This API element is subject to removal in a future version.Returns the local transfer data.longDeprecated, for removal: This API element is subject to removal in a future version.Returns the time when the selection operation this transfer is associated with was started.voidjavaToNative(Object object, TransferData transferData) Deprecated, for removal: This API element is subject to removal in a future version.Overrides org.eclipse.swt.dnd.ByteArrayTransfer#javaToNative(Object, TransferData).nativeToJava(TransferData transferData) Deprecated, for removal: This API element is subject to removal in a future version.Overrides org.eclipse.swt.dnd.ByteArrayTransfer#nativeToJava(TransferData).voidDeprecated, for removal: This API element is subject to removal in a future version.Sets the transfer data for local use.voidsetSelectionSetTime(long time) Deprecated, for removal: This API element is subject to removal in a future version.Sets the time when the selection operation this transfer is associated with was started.Methods inherited from class org.eclipse.jface.util.LocalSelectionTransfer
getTransfer, getTypeIds, getTypeNamesMethods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer
getSupportedTypes, isSupportedTypeMethods inherited from class org.eclipse.swt.dnd.Transfer
registerType, validate
-
Method Details
-
getInstance
Deprecated, for removal: This API element is subject to removal in a future version.Returns the singleton.- Returns:
- the singleton
-
getSelection
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:LocalSelectionTransferReturns the local transfer data.- Overrides:
getSelectionin classLocalSelectionTransfer- Returns:
- the local transfer data
-
getSelectionSetTime
public long getSelectionSetTime()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:LocalSelectionTransferReturns the time when the selection operation this transfer is associated with was started.- Overrides:
getSelectionSetTimein classLocalSelectionTransfer- Returns:
- the time when the selection operation has started
- See Also:
-
setSelection
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:LocalSelectionTransferSets the transfer data for local use.- Overrides:
setSelectionin classLocalSelectionTransfer- Parameters:
s- the transfer data
-
setSelectionSetTime
public void setSelectionSetTime(long time) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:LocalSelectionTransferSets the time when the selection operation this transfer is associated with was started. If assigning this from an SWT event, be sure to usesetSelectionTime(event.time & 0xFFFF)- Overrides:
setSelectionSetTimein classLocalSelectionTransfer- Parameters:
time- the time when the selection operation was started- See Also:
-
javaToNative
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:LocalSelectionTransferOverrides org.eclipse.swt.dnd.ByteArrayTransfer#javaToNative(Object, TransferData). Only encode the transfer type name since the selection is read and written in the same process.- Overrides:
javaToNativein classLocalSelectionTransfer- Parameters:
object- a javabyte[]containing the data to be convertedtransferData- an emptyTransferDataobject that will be filled in on return with the platform specific format of the data- See Also:
-
nativeToJava
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from class:LocalSelectionTransferOverrides org.eclipse.swt.dnd.ByteArrayTransfer#nativeToJava(TransferData). Test if the native drop data matches this transfer type.- Overrides:
nativeToJavain classLocalSelectionTransfer- Parameters:
transferData- the platform specific representation of the data to be converted- Returns:
- a java
byte[]containing the converted data if the conversion was successful; otherwise null - See Also:
-
LocalSelectionTransferinstead