Class PluginToolMacQuitHandler

java.lang.Object
ghidra.framework.plugintool.PluginToolMacQuitHandler

public class PluginToolMacQuitHandler extends Object
A plugin-level quit handler that serves as the callback from the Dock's 'Quit' popup action.

This will also respond to the Command-Q callback.

Note: there is a big assumption for this class that the 'front end tool', whatever that may be for your application, will be installed before all other tools. Thus, when quit is called on your application, it will go through the main tool of your app, that knows about sub-tools and such. Moreover, you would not want this handler installed on a subordinate tool; otherwise, the quit handler would try to close the wrong tool when the handler is activated.

  • Constructor Details

    • PluginToolMacQuitHandler

      public PluginToolMacQuitHandler()
  • Method Details

    • install

      public static void install(PluginTool tool)
      Applies a quit handler which will close the given tool.
      Parameters:
      tool - The tool to close, which should result in the desired quit behavior.