From 29587d86a82bb621beb69855a30f0eb3a262d982 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 18 Nov 2014 15:15:34 +0000 Subject: [PATCH] JAL-1349 rebuild Web Service menu after add/delete preset --- src/jalview/gui/WsJobParameters.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/WsJobParameters.java b/src/jalview/gui/WsJobParameters.java index 186c38c..00d9c79 100644 --- a/src/jalview/gui/WsJobParameters.java +++ b/src/jalview/gui/WsJobParameters.java @@ -436,7 +436,7 @@ public class WsJobParameters extends JPanel implements ItemListener, protected void revert_actionPerformed(ActionEvent e) { reInitDialog(lastParmSet); - + updateWebServiceMenus(); } protected void update_actionPerformed(ActionEvent e) @@ -465,6 +465,7 @@ public class WsJobParameters extends JPanel implements ItemListener, _deleteUserPreset(lastParmSet); } reInitDialog(null); // service default + updateWebServiceMenus(); } protected void create_actionPerformed(ActionEvent e) @@ -477,6 +478,7 @@ public class WsJobParameters extends JPanel implements ItemListener, isUserPreset = true; reInitDialog(curname); initArgSetModified(); + updateWebServiceMenus(); } else { @@ -1296,7 +1298,18 @@ public class WsJobParameters extends JPanel implements ItemListener, SetNamePanel.validate(); validate(); settingDialog = false; + } + /** + * Rebuild the AlignFrame web service menus (after add/delete of a preset + * option). + */ + protected void updateWebServiceMenus() + { + for (AlignFrame alignFrame : Desktop.getAlignframes()) + { + alignFrame.BuildWebServiceMenu(); + } } String curSetName = null; -- 1.7.10.2