From: gmungoc Date: Tue, 18 Nov 2014 15:15:34 +0000 (+0000) Subject: JAL-1349 rebuild Web Service menu after add/delete preset X-Git-Tag: Release_2_8_2b1^2~21 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=29587d86a82bb621beb69855a30f0eb3a262d982;p=jalview.git JAL-1349 rebuild Web Service menu after add/delete preset --- 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;