Interface PlugIn

    • Method Detail

      • initialize

        void initialize​(PlugInContext context)
                 throws Exception
        Called when Workbench starts up to allow plugins to initialize themselves.
        Throws:
        Exception
      • execute

        boolean execute​(PlugInContext context)
                 throws Exception
        Performs the action for this plugin. For threaded plugins with dialogs, this method contains the code to invoke the dialog. If the user cancels the dialog, this method should return false to prevent the run method from being called.
        Returns:
        true if the action completed, false if it was aborted. Used by ThreadedPlugIns to indicate that their #run method needn't be called next.
        Throws:
        Exception - if a problem occurs during plug-in execution
        See Also:
        ThreadedPlugIn
      • getName

        String getName()
        Returns a very brief description of this PlugIn e.g. for display as a menu item
        Returns:
        the name of this PlugIn