Package ghidra.test

Class TestTool

All Implemented Interfaces:
Tool, ServiceProvider

public class TestTool extends GhidraTool
  • Field Details

  • Constructor Details

    • TestTool

      public TestTool(Project project)
  • Method Details

    • createDockingWindowManager

      protected DockingWindowManager createDockingWindowManager(boolean isDockable, boolean hasStatus, boolean isModal)
      Description copied from class: PluginTool
      This method exists here, as opposed to inline in the constructor, so that subclasses can alter the behavior of the DockingWindowManager construction.
      Overrides:
      createDockingWindowManager in class GhidraTool
      Parameters:
      isDockable - true if the tool contains components that can be docked
      hasStatus - true if the tool should display a status component
      isModal - true if the tool is modal, meaning that while this tool is visible, no other tool or dialog in Ghidra can have focus
      Returns:
      a new DockingWindowManager
    • close

      public void close()
      Description copied from class: PluginTool
      Closes this tool, possibly with input from the user. The following conditions are checked and can prompt the user for more info and allow them to cancel the close.
      1. Running tasks. Closing with running tasks could lead to data loss.
      2. Plugins get asked if they can be closed. They may prompt the user to resolve some plugin specific state.
      3. The user is prompted to save any data changes.
      4. Tools are saved, possibly asking the user to resolve any conflicts caused by changing multiple instances of the same tool in different ways.
      5. If all the above conditions passed, the tool is closed and disposed.
      Specified by:
      close in interface Tool
      Overrides:
      close in class PluginTool