|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.common.ui.services.dnd.core.TransferAgent
public class TransferAgent
Utility class that contains the transfer id and the associated transfer
| Constructor Summary | |
|---|---|
TransferAgent(java.lang.String aTransferId,
Transfer aTransfer,
boolean anIsSelectionType)
Constructor for the transfer agent |
|
| Method Summary | |
|---|---|
ISelection |
getSelection(TransferData transferData)
Return the selection if the transfer is a selection transfer |
Transfer |
getTransfer()
Return the transfer |
java.lang.String |
getTransferId()
Return the transfer id |
boolean |
isSelectionType()
Returns a boolean indicating whether the transfer agent is selection transfer |
void |
setSelection(ISelection selection)
Set the selection if the transfer is a selection transfer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransferAgent(java.lang.String aTransferId,
Transfer aTransfer,
boolean anIsSelectionType)
aTransferId - the unique transfer ID for this transfer agentaTransfer - instance of a Transfer class that corresponds to the type of
data to be transferredanIsSelectionType - true if transfer data a selection type transfer, false if
transfer data is not a selection type transfer| Method Detail |
|---|
public java.lang.String getTransferId()
getTransferId in interface ITransferAgentpublic Transfer getTransfer()
getTransfer in interface ITransferAgentpublic void setSelection(ISelection selection)
setSelection in interface ITransferAgentselection - The selection to be setpublic ISelection getSelection(TransferData transferData)
getSelection in interface ITransferAgenttransferData - the platform specific representation of the data to be
converted
public boolean isSelectionType()
ITransferAgent
isSelectionType in interface ITransferAgent
|
Runtime | |||||||||
| 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., Borland Software Corp., and others 2005,2006. All rights reserved.