From 3f218c0b06dcdbb985903a8d5b071a10b441fa8d Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Tue, 5 Dec 2017 13:45:24 +0000 Subject: [PATCH] JAL-2847 Strings for the various tree databases added --- resources/lang/Messages.properties | 4 ++++ src/jalview/io/FileLoader.java | 1 + src/jalview/jbgui/GAlignFrame.java | 10 +++++----- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/resources/lang/Messages.properties b/resources/lang/Messages.properties index eb823af..706ed87 100644 --- a/resources/lang/Messages.properties +++ b/resources/lang/Messages.properties @@ -302,6 +302,10 @@ label.mark_unassociated_leaves = Mark Unassociated Leaves label.fit_to_window = Fit To Window label.newick_format = Newick Format label.select_tree_file = Select a tree file +label.treebase_study = TreeBASE Study +label.treebase = TreeBASE +label.treefam = TreeFam +label.tree_of_life = Tree of Life label.colours = Colours label.view_mapping = View Mapping label.wireframe = Wireframe diff --git a/src/jalview/io/FileLoader.java b/src/jalview/io/FileLoader.java index 241b833..71d0e4a 100755 --- a/src/jalview/io/FileLoader.java +++ b/src/jalview/io/FileLoader.java @@ -199,6 +199,7 @@ public class FileLoader implements Runnable return alignFrame; } + // add support for recently opened Aptx trees public void updateRecentlyOpened() { Vector recent = new Vector(); diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index 9b0c6a8..2d3eaa4 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -1103,7 +1103,7 @@ public class GAlignFrame extends JInternalFrame JMenuItem loadTreeBaseStudy = new JMenuItem( - MessageManager.getString("treebase study")); + MessageManager.getString("label.treebase_study")); loadTreeBaseStudy.addActionListener(new ActionListener() { @@ -1117,7 +1117,7 @@ public class GAlignFrame extends JInternalFrame JMenuItem loadTreeBase = new JMenuItem( - MessageManager.getString("treebase")); + MessageManager.getString("label.treebase")); loadTreeBase.addActionListener(new ActionListener() { @@ -1131,7 +1131,7 @@ public class GAlignFrame extends JInternalFrame }); JMenuItem loadTreePfam = new JMenuItem( - MessageManager.getString("pfam")); + MessageManager.getString("label.pfam")); loadTreePfam.addActionListener(new ActionListener() { @@ -1144,7 +1144,7 @@ public class GAlignFrame extends JInternalFrame }); JMenuItem loadTreeFam = new JMenuItem( - MessageManager.getString("treefam")); + MessageManager.getString("label.treefam")); loadTreeFam.addActionListener(new ActionListener() { @@ -1158,7 +1158,7 @@ public class GAlignFrame extends JInternalFrame }); JMenuItem loadTreeOfLife = new JMenuItem( - MessageManager.getString("tree_of_life")); + MessageManager.getString("label.tree_of_life")); loadTreeOfLife.addActionListener(new ActionListener() { -- 1.7.10.2