Class ToolboxPlugIn

    • Constructor Detail

      • ToolboxPlugIn

        public ToolboxPlugIn()
    • Method Detail

      • initializeToolbox

        protected abstract void initializeToolbox​(ToolboxDialog toolbox)
      • execute

        public boolean execute​(PlugInContext context)
                        throws Exception
        Toolbox subclasses can override this method to implement their own behaviour when the plug-in is called. Remember to call super.execute to make the toolbox visible.
        Specified by:
        execute in interface PlugIn
        Overrides:
        execute in class AbstractPlugIn
        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
      • createMainMenuItem

        public void createMainMenuItem​(String[] menuPath,
                                       Icon icon,
                                       WorkbenchContext context)
                                throws Exception
        Creates a menu item with a checkbox beside it that appears when the toolbox is visible.
        Parameters:
        icon - null to leave unspecified
        Throws:
        Exception