From 99830f5e58e49c6839c777b23aa6df200318064b Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Fri, 17 Nov 2017 01:49:47 +0000 Subject: [PATCH] JAL-281 changed load associated tree GUI item to menu selection --- src/jalview/jbgui/GAlignFrame.java | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index 86d0c85..d9eb259 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -199,7 +199,7 @@ public class GAlignFrame extends JInternalFrame private boolean showAutoCalculatedAbove = false; - private Map accelerators = new HashMap(); + private Map accelerators = new HashMap<>(); private SplitContainerI splitFrame; @@ -1078,9 +1078,9 @@ public class GAlignFrame extends JInternalFrame }); JMenuItem loadTreeMenuItem = new JMenuItem( - MessageManager.getString("label.load_associated_tree")); - loadTreeMenuItem.setActionCommand( - MessageManager.getString("label.load_tree_for_sequence_set")); + MessageManager.getString("label.from_file")); + // loadTreeMenuItem.setActionCommand( + // MessageManager.getString()); loadTreeMenuItem.addActionListener(new ActionListener() { @Override @@ -1683,7 +1683,14 @@ public class GAlignFrame extends JInternalFrame JMenu exportImageMenu = new JMenu( MessageManager.getString("label.export_image")); + JMenu loadTreeMenu = new JMenu( + MessageManager.getString("label.load_associated_tree")); + loadTreeMenu.setActionCommand("label.load_tree_for_sequence_set"); + JMenu fileMenu = new JMenu(MessageManager.getString("action.file")); + + loadTreeMenu.add(loadTreeMenuItem); + alignFrameMenuBar.add(fileMenu); alignFrameMenuBar.add(editMenu); alignFrameMenuBar.add(selectMenu); @@ -1708,7 +1715,7 @@ public class GAlignFrame extends JInternalFrame fileMenu.add(exportImageMenu); fileMenu.add(exportFeatures); fileMenu.add(exportAnnotations); - fileMenu.add(loadTreeMenuItem); + fileMenu.add(loadTreeMenu); fileMenu.add(associatedData); fileMenu.addSeparator(); fileMenu.add(closeMenuItem); -- 1.7.10.2