git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3066 Fix NullPointerException thrown when showing HMMER run dialog
[jalview.git]
/
src
/
jalview
/
gui
/
LineartOptions.java
diff --git
a/src/jalview/gui/LineartOptions.java
b/src/jalview/gui/LineartOptions.java
index
ccf7edb
..
62bdd35
100644
(file)
--- a/
src/jalview/gui/LineartOptions.java
+++ b/
src/jalview/gui/LineartOptions.java
@@
-22,7
+22,6
@@
package jalview.gui;
import jalview.bin.Cache;
import jalview.util.MessageManager;
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.FlowLayout;
import java.awt.event.ActionEvent;
@@
-87,7
+86,7
@@
public class LineartOptions extends JPanel
ex.printStackTrace();
}
ex.printStackTrace();
}
- dialog = JvOptionPane.newOptionDialog(Desktop.desktop);
+ dialog = JvOptionPane.newOptionDialog(Desktop.getDesktopPane());
}
/**
}
/**
@@
-96,9
+95,9
@@
public class LineartOptions extends JPanel
*
* @param action
*/
*
* @param action
*/
- public void setResponseAction(Object response, RunResponse action)
+ public void setResponseAction(Object response, Runnable action)
{
{
- dialog.addResponse(response, action);
+ dialog.setResponseHandler(response, action);
}
/**
}
/**
@@
-189,7
+188,7
@@
public class LineartOptions extends JPanel
}
else
{
}
else
{
- Cache.applicationProperties.remove(preferencesKey);
+ Cache.removePropertyNoSave(preferencesKey);
}
}
}
}