X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fgui%2FLineartOptions.java;h=2a96eb4aa5064f0de21a217bc0f506b0ef607eed;hb=0826cbb5798327ccde7e5a65204bb2dfc7f9bbbb;hp=765a1ac81bcc227d29134898100d8b72f210f789;hpb=2e02b14ba33c2cf4618f65c831a506f81e621589;p=jalview.git diff --git a/src/jalview/gui/LineartOptions.java b/src/jalview/gui/LineartOptions.java index 765a1ac..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(RunResponse action) + public void setResponseAction(Object response, Runnable action) { - dialog.addResponse(action); + dialog.setResponseHandler(response, action); } /**