JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / jalview / util / dialogrunner / DialogRunnerI.java
index 0cb90c2..fde80f7 100644 (file)
@@ -29,28 +29,30 @@ package jalview.util.dialogrunner;
  * @author jprocter
  *
  */
-public interface DialogRunnerI {
+public interface DialogRunnerI
+{
 
-       /**
-        * Sets the action to be performed when the dialog returns the given response.
-        * Note this also handles <code>int</code>-valued responses, which will be
-        * converted to <code>Integer</code> when this method is invoked.
-        * 
-        * @param response
-        * @param action
-        * @return
-        */
-       DialogRunnerI setResponseHandler(Object response, Runnable action);
+  /**
+   * Sets the action to be performed when the dialog returns the given response.
+   * Note this also handles <code>int</code>-valued responses, which will be
+   * converted to <code>Integer</code> when this method is invoked.
+   * 
+   * @param response
+   * @param action
+   * @return
+   */
+  DialogRunnerI setResponseHandler(Object response, Runnable action);
 
-       /**
-        * Runs the registered handler (if any) for the given response. The default
-        * action is to do nothing. Typically an action will be need on 'OK' or other
-        * positive selection in the dialog. An action might in some cases also be
-        * needed for a 'Cancel' response.
-        * 
-        * @param response
-        * @return
-        */
-       default void handleResponse(Object response) {
-       }
+  /**
+   * Runs the registered handler (if any) for the given response. The default
+   * action is to do nothing. Typically an action will be need on 'OK' or other
+   * positive selection in the dialog. An action might in some cases also be
+   * needed for a 'Cancel' response.
+   * 
+   * @param response
+   * @return
+   */
+  default void handleResponse(Object response)
+  {
+  }
 }