Skip to content

A free, open-source alternative to Burp Suite: an intercepting proxy and web app security testing suite with Repeater, Intruder, Collaborator and a built-in OWASP ZAP scanner. Linux, AGPL-3.0.

1005 B
Raw Blame
package opensuite.ui;

import opensuite.core.ToolModule;

/**
 * What the shell does with a tool that arrives after the window is built, or
 * leaves before it closes. Built-in tools register before {@code buildUi}; a
 * tool loaded at run time comes and goes through this instead. As
 * {@code SuiteFrame.register} does for a built-in tool, the shell enters the
 * tool in the suite's context when it arrives and takes it out when it
 * leaves, so that it is saved, restored and shut down with the other tools
 * for exactly as long as it is in the window. Whoever hands a tool to the
 * shell does not enter it in the context as well.
 */
public interface ToolHost {

    /**
     * Put the tool's tab and menus up, and enter it in the suite's context.
     * Called on the event thread.
     */
    void toolAdded(ToolModule m);

    /**
     * Take the tool's tab and menus down, and take it out of the suite's
     * context. Called on the event thread.
     */
    void toolRemoved(ToolModule m);
}