Package ghidra.app.util
Class SelectionTransferable
java.lang.Object
ghidra.app.util.SelectionTransferable
- All Implemented Interfaces:
ClipboardOwner,Transferable
Defines data that is available for drag/drop and clipboard transfers.
The data is an AddressSetView.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSelectionTransferable(SelectionTransferData selectionData) Construct a new SelectionTransferable. -
Method Summary
Modifier and TypeMethodDescriptionReturn the transfer data with the given data flavor.Return all data flavors that this class supports.booleanReturn whether the specified data flavor is supported.voidlostOwnership(Clipboard clipboard, Transferable contents) toString()
-
Field Details
-
localProgramSelectionFlavor
DataFlavor for program selection.
-
-
Constructor Details
-
SelectionTransferable
Construct a new SelectionTransferable.- Parameters:
selectionData- the data indicating the selection for the selection transferable
-
-
Method Details
-
getTransferDataFlavors
Return all data flavors that this class supports.- Specified by:
getTransferDataFlavorsin interfaceTransferable
-
isDataFlavorSupported
Return whether the specified data flavor is supported.- Specified by:
isDataFlavorSupportedin interfaceTransferable
-
getTransferData
Return the transfer data with the given data flavor.- Specified by:
getTransferDatain interfaceTransferable- Throws:
UnsupportedFlavorExceptionIOException
-
toString
-
lostOwnership
- Specified by:
lostOwnershipin interfaceClipboardOwner
-