Class JavaFileListHandler

java.lang.Object
ghidra.framework.main.datatree.JavaFileListHandler
All Implemented Interfaces:
FileOpenDataFlavorHandler, DataTreeFlavorHandler

public final class JavaFileListHandler extends Object
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 Details

    • JavaFileListHandler

      public JavaFileListHandler()
  • Method Details

    • handle

      public void handle(PluginTool tool, Object transferData, DropTargetDropEvent e, DataFlavor f)
    • 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 imported
      tool - target tool (active/current project assumed)
      component - parent component for popup messages
    • getDomainFolder

      protected DomainFolder getDomainFolder(GTreeNode destinationNode)