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-3048 wip externalise trigger from RunResponse
[jalview.git]
/
src
/
jalview
/
gui
/
EditNameDialog.java
diff --git
a/src/jalview/gui/EditNameDialog.java
b/src/jalview/gui/EditNameDialog.java
index
bbb7a20
..
c976545
100644
(file)
--- a/
src/jalview/gui/EditNameDialog.java
+++ b/
src/jalview/gui/EditNameDialog.java
@@
-107,9
+107,7
@@
public class EditNameDialog
}
/**
}
/**
- * Shows the dialog, and runs the response action if OK is selected. Note the
- * RunResponse should be constructed to act on dialog return value
- * JvOptionPane.OK_OPTION.
+ * Shows the dialog, and runs the response action if OK is selected
*
* @param action
*/
*
* @param action
*/
@@
-118,7
+116,7
@@
public class EditNameDialog
{
Object[] options = new Object[] { MessageManager.getString("action.ok"),
MessageManager.getString("action.cancel") };
{
Object[] options = new Object[] { MessageManager.getString("action.ok"),
MessageManager.getString("action.cancel") };
- JvOptionPane.newOptionDialog(parent).addResponse(action)
+ JvOptionPane.newOptionDialog(parent).addResponse(0, action)
.showInternalDialog(panel, title,
JvOptionPane.YES_NO_CANCEL_OPTION,
JvOptionPane.PLAIN_MESSAGE, null, options,
.showInternalDialog(panel, title,
JvOptionPane.YES_NO_CANCEL_OPTION,
JvOptionPane.PLAIN_MESSAGE, null, options,