Class PluginToolMacQuitHandler

  • public class PluginToolMacQuitHandler
    extends java.lang.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.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void install​(PluginTool tool)
      Applies a quit handler which will close the given tool.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PluginToolMacQuitHandler

        public PluginToolMacQuitHandler()
    • Method Detail

      • install

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