Package ghidra.framework.main.datatree
Class JavaFileListHandler
java.lang.Object
ghidra.framework.main.datatree.JavaFileListHandler
- All Implemented Interfaces:
FileOpenDataFlavorHandler
,DataTreeFlavorHandler
A handler to facilitate drag-n-drop for a list of Java
File
objects which is dropped
onto the Project data tree or a running Ghidra Tool (see DataFlavor.javaFileListFlavor
).-
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)
-
Constructor Details
-
JavaFileListHandler
public JavaFileListHandler()
-
-
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
-