|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.dnd.Transfer
org.eclipse.swt.dnd.ByteArrayTransfer
org.eclipse.jface.util.LocalSelectionTransfer
org.eclipse.ui.views.navigator.LocalSelectionTransfer
LocalSelectionTransfer instead
public class LocalSelectionTransfer
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.
| Method Summary | |
|---|---|
static LocalSelectionTransfer |
getInstance()
Deprecated. Returns the singleton. |
ISelection |
getSelection()
Deprecated. Returns the local transfer data. |
long |
getSelectionSetTime()
Deprecated. Returns the time when the selection operation this transfer is associated with was started. |
void |
javaToNative(java.lang.Object object,
TransferData transferData)
Deprecated. Overrides org.eclipse.swt.dnd.ByteArrayTransfer#javaToNative(Object, TransferData). |
java.lang.Object |
nativeToJava(TransferData transferData)
Deprecated. Overrides org.eclipse.swt.dnd.ByteArrayTransfer#nativeToJava(TransferData). |
void |
setSelection(ISelection s)
Deprecated. Sets the transfer data for local use. |
void |
setSelectionSetTime(long time)
Deprecated. 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, getTypeNames |
| Methods inherited from class org.eclipse.swt.dnd.ByteArrayTransfer |
|---|
getSupportedTypes, isSupportedType |
| Methods inherited from class org.eclipse.swt.dnd.Transfer |
|---|
registerType, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static LocalSelectionTransfer getInstance()
public ISelection getSelection()
LocalSelectionTransfer
getSelection in class LocalSelectionTransferpublic long getSelectionSetTime()
LocalSelectionTransfer
getSelectionSetTime in class LocalSelectionTransferTypedEvent.timepublic void setSelection(ISelection s)
LocalSelectionTransfer
setSelection in class LocalSelectionTransfers - the transfer datapublic void setSelectionSetTime(long time)
LocalSelectionTransfersetSelectionTime(event.time & 0xFFFF)
setSelectionSetTime in class LocalSelectionTransfertime - the time when the selection operation was startedTypedEvent.time
public void javaToNative(java.lang.Object object,
TransferData transferData)
LocalSelectionTransfer
javaToNative in class LocalSelectionTransferobject - a java byte[] containing the data to be convertedtransferData - an empty TransferData object that will
be filled in on return with the platform specific format of the dataByteArrayTransfer.javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)public java.lang.Object nativeToJava(TransferData transferData)
LocalSelectionTransfer
nativeToJava in class LocalSelectionTransfertransferData - the platform specific representation of the data to be converted
byte[] containing the converted data if the conversion was
successful; otherwise nullByteArrayTransfer.nativeToJava(TransferData)
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.