JAL-3048 wip externalise trigger from RunResponse
[jalview.git] / src / jalview / util / dialogrunner / DialogRunnerI.java
index 6914656..cc4a836 100644 (file)
@@ -31,17 +31,7 @@ import java.util.List;
 public interface DialogRunnerI
 {
 
-  /**
-   * Adds a new response for this dialog, and returns the dialog (this), to allow chaining, eg.
-   * <pre>
-   * dialog.addResponse(newRunResponse(OK_PRessed) { run()...})
-   *     .addResponse(new RunResponse(CANCEL_PRESSED);
-   * </pre>
-   * 
-   * @param action
-   * @return
-   */
-  DialogRunnerI addResponse(RunResponse action);
+  DialogRunnerI addResponse(Object response, RunResponse action);
 
   /**
    * Runs any registered handlers for the given response, and answers the list