X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fjbgui%2FGTreePanel.java;h=6130204ef5484018346fef6e1b296c730e1775b3;hb=9876fdccf311378e690c1f9e18db52675d427b89;hp=f2b32f13613ee3418f4a5b536875069264fd5a88;hpb=b57a02c25e335d033c97f8a6bacd6b54f62bd2b6;p=jalview.git
diff --git a/src/jalview/jbgui/GTreePanel.java b/src/jalview/jbgui/GTreePanel.java
index f2b32f1..6130204 100755
--- a/src/jalview/jbgui/GTreePanel.java
+++ b/src/jalview/jbgui/GTreePanel.java
@@ -1,26 +1,40 @@
/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
- * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.9)
+ * Copyright (C) 2015 The Jalview Authors
*
* This file is part of Jalview.
*
* Jalview is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
* Jalview is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see .
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
*/
package jalview.jbgui;
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
-import javax.swing.event.*;
+import jalview.util.MessageManager;
+
+import java.awt.BorderLayout;
+import java.awt.Color;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JCheckBoxMenuItem;
+import javax.swing.JInternalFrame;
+import javax.swing.JMenu;
+import javax.swing.JMenuBar;
+import javax.swing.JMenuItem;
+import javax.swing.JScrollPane;
+import javax.swing.event.MenuEvent;
+import javax.swing.event.MenuListener;
public class GTreePanel extends JInternalFrame
{
@@ -80,8 +94,8 @@ public class GTreePanel extends JInternalFrame
this.setBackground(Color.white);
this.setFont(new java.awt.Font("Verdana", 0, 12));
scrollPane.setOpaque(false);
- fileMenu.setText("File");
- saveAsNewick.setText("Newick Format");
+ fileMenu.setText(MessageManager.getString("action.file"));
+ saveAsNewick.setText(MessageManager.getString("label.newick_format"));
saveAsNewick.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -89,7 +103,7 @@ public class GTreePanel extends JInternalFrame
saveAsNewick_actionPerformed(e);
}
});
- printMenu.setText("Print");
+ printMenu.setText(MessageManager.getString("action.print"));
printMenu.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -97,7 +111,7 @@ public class GTreePanel extends JInternalFrame
printMenu_actionPerformed(e);
}
});
- viewMenu.setText("View");
+ viewMenu.setText(MessageManager.getString("action.view"));
viewMenu.addMenuListener(new MenuListener()
{
public void menuSelected(MenuEvent e)
@@ -113,15 +127,16 @@ public class GTreePanel extends JInternalFrame
{
}
});
- sortAssocViews.setText("Sort Alignment By Tree");
+ sortAssocViews.setText(MessageManager
+ .getString("label.sort_alignment_by_tree"));
sortAssocViews.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
{
- sortByTree_actionPerformed(e);
+ sortByTree_actionPerformed();
}
});
- font.setText("Font...");
+ font.setText(MessageManager.getString("action.font"));
font.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -129,7 +144,8 @@ public class GTreePanel extends JInternalFrame
font_actionPerformed(e);
}
});
- bootstrapMenu.setText("Show Bootstrap Values");
+ bootstrapMenu.setText(MessageManager
+ .getString("label.show_bootstrap_values"));
bootstrapMenu.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -137,7 +153,7 @@ public class GTreePanel extends JInternalFrame
bootstrapMenu_actionPerformed(e);
}
});
- distanceMenu.setText("Show Distances");
+ distanceMenu.setText(MessageManager.getString("label.show_distances"));
distanceMenu.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -146,7 +162,7 @@ public class GTreePanel extends JInternalFrame
}
});
fitToWindow.setSelected(true);
- fitToWindow.setText("Fit To Window");
+ fitToWindow.setText(MessageManager.getString("label.fit_to_window"));
fitToWindow.addActionListener(new java.awt.event.ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -170,10 +186,12 @@ public class GTreePanel extends JInternalFrame
pngTree_actionPerformed(e);
}
});
- saveAsMenu.setText("Save as");
+ saveAsMenu.setText(MessageManager.getString("action.save_as"));
placeholdersMenu
- .setToolTipText("Marks leaves of tree not associated with a sequence");
- placeholdersMenu.setText("Mark Unlinked Leaves");
+ .setToolTipText(MessageManager
+ .getString("label.marks_leaves_tree_not_associated_with_sequence"));
+ placeholdersMenu.setText(MessageManager
+ .getString("label.mark_unlinked_leaves"));
placeholdersMenu.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -181,7 +199,7 @@ public class GTreePanel extends JInternalFrame
placeholdersMenu_actionPerformed(e);
}
});
- textbox.setText("Output to Textbox...");
+ textbox.setText(MessageManager.getString("label.out_to_textbox"));
textbox.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -189,7 +207,7 @@ public class GTreePanel extends JInternalFrame
textbox_actionPerformed(e);
}
});
- originalSeqData.setText("Input Data...");
+ originalSeqData.setText(MessageManager.getString("label.input_data"));
originalSeqData.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
@@ -197,7 +215,8 @@ public class GTreePanel extends JInternalFrame
originalSeqData_actionPerformed(e);
}
});
- associateLeavesMenu.setText("Associate Leaves With");
+ associateLeavesMenu.setText(MessageManager
+ .getString("label.associate_leaves_with"));
this.getContentPane().add(scrollPane, BorderLayout.CENTER);
jMenuBar1.add(fileMenu);
jMenuBar1.add(viewMenu);
@@ -271,7 +290,7 @@ public class GTreePanel extends JInternalFrame
{
}
- public void sortByTree_actionPerformed(ActionEvent e)
+ public void sortByTree_actionPerformed()
{
}