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
-
Constructor Summary
ConstructorDescriptionSelectionTransferable
(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.boolean
Return whether the specified data flavor is supported.void
lostOwnership
(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:
getTransferDataFlavors
in interfaceTransferable
-
isDataFlavorSupported
Return whether the specified data flavor is supported.- Specified by:
isDataFlavorSupported
in interfaceTransferable
-
getTransferData
Return the transfer data with the given data flavor.- Specified by:
getTransferData
in interfaceTransferable
- Throws:
UnsupportedFlavorException
IOException
-
toString
-
lostOwnership
- Specified by:
lostOwnership
in interfaceClipboardOwner
-