Package ghidra.framework.main.datatree
Class LinuxFileUrlHandler
java.lang.Object
ghidra.framework.main.datatree.LinuxFileUrlHandler
- All Implemented Interfaces:
FileOpenDataFlavorHandler
,DataTreeFlavorHandler
A handler to facilitate drag-n-drop for a Linux URL-based file list which is dropped
onto the Project data tree or a running Ghidra Tool (see
linuxFileUrlFlavor
).-
Field Summary
Modifier and TypeFieldDescriptionstatic final DataFlavor
Linux URL-based file listDataFlavor
to be used during handler registration usingDataTreeDragNDropHandler.addActiveDataFlavorHandler(java.awt.datatransfer.DataFlavor, ghidra.framework.main.datatree.DataTreeFlavorHandler)
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doImport
(DomainFolder folder, List<File> files, PluginTool tool, Component component) Do import when destination folder has been specified (e.g., data tree folder node).protected DomainFolder
getDomainFolder
(GTreeNode destinationNode) boolean
handle
(PluginTool tool, DataTree dataTree, GTreeNode destinationNode, Object transferData, int dropAction) void
handle
(PluginTool tool, Object transferData, DropTargetDropEvent e, DataFlavor f)
-
Field Details
-
linuxFileUrlFlavor
Linux URL-based file listDataFlavor
to be used during handler registration usingDataTreeDragNDropHandler.addActiveDataFlavorHandler(java.awt.datatransfer.DataFlavor, ghidra.framework.main.datatree.DataTreeFlavorHandler)
.
-
-
Constructor Details
-
LinuxFileUrlHandler
public LinuxFileUrlHandler()
-
-
Method Details
-
handle
-
handle
public boolean handle(PluginTool tool, DataTree dataTree, GTreeNode destinationNode, Object transferData, int dropAction) -
doImport
protected void doImport(DomainFolder folder, List<File> files, PluginTool tool, Component component) Do import when destination folder has been specified (e.g., data tree folder node).- Parameters:
folder
- destination folder (if null root folder will be assumed)files
- files to be importedtool
- target tool (active/current project assumed)component
- parent component for popup messages
-
getDomainFolder
-