Package ghidra.framework.main.datatree
Class DataTreeClipboardUtils
- java.lang.Object
-
- ghidra.framework.main.datatree.DataTreeClipboardUtils
-
public class DataTreeClipboardUtils extends java.lang.ObjectManages Ghidra integration with the system clipboard when doing cut/copy/paste operations on domainFiles and domainFolders in a data tree widget.
-
-
Constructor Summary
Constructors Constructor Description DataTreeClipboardUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearCuttables()Clears theisCutflag on any GTreeNodes that are pointed to by the system clipboard.static voidclearCuttables(java.awt.datatransfer.Transferable transferable)Clears theisCutflag on any GTreeNodes that are pointed to by the specifiedTransferablestatic java.util.List<GTreeNode>getDataTreeNodesFromClipboard()Fetches any GTreeNodes from the system clipboard.static booleanisCuttablePresent()Returns true if the system clipboard has any GTreeNodes that have theCuttable.isCut()flag set.static voidsetClipboardContents(DataTree tree, javax.swing.tree.TreePath[] paths)Pushes the GTreeNodes in the specified TreePath array to the clipboard.
-
-
-
Method Detail
-
setClipboardContents
public static void setClipboardContents(DataTree tree, javax.swing.tree.TreePath[] paths)
Pushes the GTreeNodes in the specified TreePath array to the clipboard.- Parameters:
tree- DataTree that contains the GTreeNodespaths- array of TreePaths containing nodes to be pushed to clipboard.
-
clearCuttables
public static void clearCuttables()
Clears theisCutflag on any GTreeNodes that are pointed to by the system clipboard.
-
clearCuttables
public static void clearCuttables(java.awt.datatransfer.Transferable transferable)
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
-
-