X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Futil%2Fdialogrunner%2FDialogRunnerI.java;h=758d421e11c516b3e208369778e3363c1585db52;hb=2e02b14ba33c2cf4618f65c831a506f81e621589;hp=aaeb30448e52b96ea2bee5fc53d00940e41dc433;hpb=2bdebf83bfd259c937afb4c30ca8d06d1bd5e6f9;p=jalview.git diff --git a/src/jalview/util/dialogrunner/DialogRunnerI.java b/src/jalview/util/dialogrunner/DialogRunnerI.java index aaeb304..758d421 100644 --- a/src/jalview/util/dialogrunner/DialogRunnerI.java +++ b/src/jalview/util/dialogrunner/DialogRunnerI.java @@ -30,12 +30,14 @@ public interface DialogRunnerI { /** - * define a new response for this dialog. eg. dialog.response(new - * RunResponse(OK_PRessed) { run()...}).response(new RunResponse(CANCEL_PRESSED) - * { ... }); + * Adds a new response for this dialog, and returns the dialog (this), to allow chaining, eg. + *
+   * dialog.addResponse(newRunResponse(OK_PRessed) { run()...})
+   *     .addResponse(new RunResponse(CANCEL_PRESSED);
+   * 
* * @param action * @return the dialog */ - T response(RunResponse action); + T addResponse(RunResponse action); }