From: hansonr Date: Sun, 31 Mar 2019 17:21:52 +0000 (-0500) Subject: adds TreePanel name jalview-tree X-Git-Tag: Release_2_11_4_0~45^2~18^2~190 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c3110c2c97aa1bf334c62f9bf66b50c1616ab5be;p=jalview.git adds TreePanel name jalview-tree --- diff --git a/src/jalview/jbgui/GTreePanel.java b/src/jalview/jbgui/GTreePanel.java index 150640f..d184e76 100755 --- a/src/jalview/jbgui/GTreePanel.java +++ b/src/jalview/jbgui/GTreePanel.java @@ -37,6 +37,7 @@ import javax.swing.JScrollPane; import javax.swing.event.MenuEvent; import javax.swing.event.MenuListener; +@SuppressWarnings("serial") public class GTreePanel extends JInternalFrame { BorderLayout borderLayout1 = new BorderLayout(); @@ -91,6 +92,7 @@ public class GTreePanel extends JInternalFrame private void jbInit() throws Exception { + setName("jalview-tree"); this.getContentPane().setLayout(borderLayout1); this.setBackground(Color.white); this.setFont(new java.awt.Font("Verdana", 0, 12)); @@ -99,6 +101,7 @@ public class GTreePanel extends JInternalFrame saveAsNewick.setText(MessageManager.getString("label.newick_format")); saveAsNewick.addActionListener(new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { saveAsNewick_actionPerformed(e); @@ -107,6 +110,7 @@ public class GTreePanel extends JInternalFrame printMenu.setText(MessageManager.getString("action.print")); printMenu.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { printMenu_actionPerformed(e); @@ -115,15 +119,18 @@ public class GTreePanel extends JInternalFrame viewMenu.setText(MessageManager.getString("action.view")); viewMenu.addMenuListener(new MenuListener() { + @Override public void menuSelected(MenuEvent e) { viewMenu_menuSelected(); } + @Override public void menuDeselected(MenuEvent e) { } + @Override public void menuCanceled(MenuEvent e) { } @@ -132,6 +139,7 @@ public class GTreePanel extends JInternalFrame MessageManager.getString("label.sort_alignment_by_tree")); sortAssocViews.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { sortByTree_actionPerformed(); @@ -140,6 +148,7 @@ public class GTreePanel extends JInternalFrame font.setText(MessageManager.getString("action.font")); font.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { font_actionPerformed(e); @@ -149,6 +158,7 @@ public class GTreePanel extends JInternalFrame MessageManager.getString("label.show_bootstrap_values")); bootstrapMenu.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { bootstrapMenu_actionPerformed(e); @@ -157,6 +167,7 @@ public class GTreePanel extends JInternalFrame distanceMenu.setText(MessageManager.getString("label.show_distances")); distanceMenu.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { distanceMenu_actionPerformed(e); @@ -166,6 +177,7 @@ public class GTreePanel extends JInternalFrame fitToWindow.setText(MessageManager.getString("label.fit_to_window")); fitToWindow.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { fitToWindow_actionPerformed(e); @@ -174,6 +186,7 @@ public class GTreePanel extends JInternalFrame epsTree.setText("EPS"); epsTree.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { writeTreeImage(TYPE.EPS); @@ -182,6 +195,7 @@ public class GTreePanel extends JInternalFrame pngTree.setText("PNG"); pngTree.addActionListener(new java.awt.event.ActionListener() { + @Override public void actionPerformed(ActionEvent e) { writeTreeImage(TYPE.PNG); @@ -194,6 +208,7 @@ public class GTreePanel extends JInternalFrame MessageManager.getString("label.mark_unlinked_leaves")); placeholdersMenu.addActionListener(new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { placeholdersMenu_actionPerformed(e); @@ -202,6 +217,7 @@ public class GTreePanel extends JInternalFrame textbox.setText(MessageManager.getString("label.out_to_textbox")); textbox.addActionListener(new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { textbox_actionPerformed(e); @@ -210,6 +226,7 @@ public class GTreePanel extends JInternalFrame originalSeqData.setText(MessageManager.getString("label.input_data")); originalSeqData.addActionListener(new ActionListener() { + @Override public void actionPerformed(ActionEvent e) { originalSeqData_actionPerformed(e);