X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FLineartOptions.java;h=2a96eb4aa5064f0de21a217bc0f506b0ef607eed;hb=c764fbfdffe3a52349038c957d7a73b8e22e9985;hp=ccf7edbbb0fd3bdf22eaa12a4249010d68e28165;hpb=1e28a196997a1e0b8b74d468bfd3df8ec74c1337;p=jalview.git diff --git a/src/jalview/gui/LineartOptions.java b/src/jalview/gui/LineartOptions.java index ccf7edb..2a96eb4 100644 --- a/src/jalview/gui/LineartOptions.java +++ b/src/jalview/gui/LineartOptions.java @@ -20,10 +20,6 @@ */ package jalview.gui; -import jalview.bin.Cache; -import jalview.util.MessageManager; -import jalview.util.dialogrunner.RunResponse; - import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; @@ -36,13 +32,16 @@ import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JRadioButton; +import jalview.bin.Cache; +import jalview.util.MessageManager; + /** * A dialog where the user may choose Text or Lineart rendering, and optionally * save this as a preference ("Don't ask me again") */ public class LineartOptions extends JPanel { - static final String PROMPT_EACH_TIME = "Prompt each time"; + public static final String PROMPT_EACH_TIME = "Prompt each time"; JvOptionPane dialog; @@ -96,9 +95,9 @@ public class LineartOptions extends JPanel * * @param action */ - public void setResponseAction(Object response, RunResponse action) + public void setResponseAction(Object response, Runnable action) { - dialog.addResponse(response, action); + dialog.setResponseHandler(response, action); } /**