Package ghidra.framework.main.datatree
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 SummaryConstructors
- 
Method SummaryModifier 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- 
DataTreeClipboardUtilspublic DataTreeClipboardUtils()
 
- 
- 
Method Details- 
setClipboardContentsPushes the GTreeNodes in the specified TreePath array to the clipboard.- Parameters:
- tree- DataTree that contains the GTreeNodes
- paths- array of TreePaths containing nodes to be pushed to clipboard.
 
- 
clearCuttablespublic static void clearCuttables()Clears theisCutflag on any GTreeNodes that are pointed to by the system clipboard.
- 
clearCuttablesClears theisCutflag on any GTreeNodes that are pointed to by the specifiedTransferable- Parameters:
- transferable- contains clipboard contents
 
- 
isCuttablePresentpublic 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
 
- 
getDataTreeNodesFromClipboardFetches any GTreeNodes from the system clipboard.- Returns:
- List of GTreeNodes that were in the system clipboard, or empty list if no nodes or some other access error.
 
 
-