|
Eclipse Platform Release 3.3 |
|||||||||||
| 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
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()
Returns the singleton. |
ISelection |
getSelection()
Returns the local transfer data. |
long |
getSelectionSetTime()
Returns the time when the selection operation this transfer is associated with was started. |
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 |
setSelection(ISelection s)
Sets the transfer data for local use. |
void |
setSelectionSetTime(long time)
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(Object object,
TransferData transferData)
LocalSelectionTransfer
javaToNative in class LocalSelectionTransferByteArrayTransfer.javaToNative(java.lang.Object, org.eclipse.swt.dnd.TransferData)public Object nativeToJava(TransferData transferData)
LocalSelectionTransfer
nativeToJava in class LocalSelectionTransferByteArrayTransfer.nativeToJava(TransferData)
|
Eclipse Platform Release 3.3 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.