Class DataTreeClipboardUtils
java.lang.Object
ghidra.framework.main.datatree.DataTreeClipboardUtils
Manages Ghidra integration with the system clipboard when doing cut/copy/paste
operations on domainFiles and domainFolders in a data tree widget.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears theisCutflag on any GTreeNodes that are pointed to by the system clipboard.static voidclearCuttables(Transferable transferable) Clears theisCutflag on any GTreeNodes that are pointed to by the specifiedTransferableFetches any GTreeNodes from the system clipboard.static booleanReturns true if the system clipboard has any GTreeNodes that have theCuttable.isCut()flag set.static voidsetClipboardContents(DataTree tree, TreePath[] paths) Pushes the GTreeNodes in the specified TreePath array to the clipboard.
-
Constructor Details
-
DataTreeClipboardUtils
public DataTreeClipboardUtils()
-
-
Method Details
-
setClipboardContents
-
clearCuttables
public static void clearCuttables()Clears theisCutflag on any GTreeNodes that are pointed to by the system clipboard. -
clearCuttables
Clears theisCutflag on any GTreeNodes that are pointed to by the specifiedTransferable- Parameters:
transferable- contains clipboard contents
-
isCuttablePresent
public static boolean isCuttablePresent()Returns true if the system clipboard has any GTreeNodes that have theCuttable.isCut()flag set.- Returns:
- boolean true if there are any cut nodes in the clipboard
-
getDataTreeNodesFromClipboard
-