JAL-2847 added database menu items and listeners
authorkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 21 Nov 2017 15:37:56 +0000 (15:37 +0000)
committerkjvdheide <kjvanderheide@dundee.ac.uk>
Tue, 21 Nov 2017 15:37:56 +0000 (15:37 +0000)
src/jalview/gui/AlignFrame.java
src/jalview/jbgui/GAlignFrame.java

index 8408bcb..427cb00 100644 (file)
@@ -3903,6 +3903,41 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
     chooseTreeDb();
   }
 
+  @Override
+  protected void loadTreeBaseStudy_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void loadTreeOfLife_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void loadTreeFam_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void loadTreePfam_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  @Override
+  protected void loadTreeBase_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
   public void chooseTreeFile()
   {
     // Pick the tree file
@@ -3938,7 +3973,6 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener,
   public void chooseTreeUrl()
   {
 
-
     JLabel label = new JLabel(
             MessageManager.getString("label.tree_url_example"));
     // add "example" button
index 0672136..a202ed0 100755 (executable)
@@ -1100,15 +1100,76 @@ public class GAlignFrame extends JInternalFrame
       }
     });
 
-    JMenuItem loadTreeDb = new JMenuItem(
-            MessageManager.getString("label.from_database"));
-    loadTreeDb.addActionListener(new ActionListener()
+
+
+    JMenuItem loadTreeBaseStudy = new JMenuItem(
+            MessageManager.getString("treebase study"));
+    loadTreeBaseStudy.addActionListener(new ActionListener()
+    {
+
+      @Override
+      public void actionPerformed(ActionEvent e)
+      {
+        loadTreeBaseStudy_actionPerformed(e);
+
+      }    });
+
+
+
+    JMenuItem loadTreeBase = new JMenuItem(
+            MessageManager.getString("treebase"));
+    loadTreeBase.addActionListener(new ActionListener()
+    {
+
+      @Override
+      public void actionPerformed(ActionEvent e)
+      {
+        loadTreeBase_actionPerformed(e);
+
+      }
+
+
+    });
+    JMenuItem loadTreePfam = new JMenuItem(
+            MessageManager.getString("pfam"));
+    loadTreePfam.addActionListener(new ActionListener()
+    {
+
+      @Override
+      public void actionPerformed(ActionEvent e)
+      {
+        loadTreePfam_actionPerformed(e);
+
+      }
+
+    });
+    JMenuItem loadTreeFam = new JMenuItem(
+            MessageManager.getString("treefam"));
+    loadTreeFam.addActionListener(new ActionListener()
+    {
+
+      @Override
+      public void actionPerformed(ActionEvent e)
+      {
+        loadTreeFam_actionPerformed(e);
+
+      }
+
+    });
+
+    JMenuItem loadTreeOfLife = new JMenuItem(
+            MessageManager.getString("tree_of_life"));
+    loadTreeOfLife.addActionListener(new ActionListener()
     {
+
       @Override
       public void actionPerformed(ActionEvent e)
       {
-        loadTreeDbItem_actionPerformed(e);
+        loadTreeOfLife_actionPerformed(e);
+
       }
+
+
     });
 
     scaleAbove.setVisible(false);
@@ -1704,6 +1765,10 @@ public class GAlignFrame extends JInternalFrame
 
     JMenu exportImageMenu = new JMenu(
             MessageManager.getString("label.export_image"));
+
+    JMenu loadTreeDb = new JMenu(
+            MessageManager.getString("label.from_database"));
+
     JMenu loadTreeMenu = new JMenu(
             MessageManager.getString("label.load_associated_tree"));
     // loadTreeMenu.setToolTipText(
@@ -1711,6 +1776,12 @@ public class GAlignFrame extends JInternalFrame
     
     JMenu fileMenu = new JMenu(MessageManager.getString("action.file"));
 
+    loadTreeDb.add(loadTreeBaseStudy);
+    loadTreeDb.add(loadTreeBase);
+    loadTreeDb.add(loadTreePfam);
+    loadTreeDb.add(loadTreeFam);
+    loadTreeDb.add(loadTreeOfLife);
+
     loadTreeMenu.add(loadTreeFile);
     loadTreeMenu.add(loadTreeUrl);
     loadTreeMenu.add(loadTreeDb);
@@ -1888,6 +1959,36 @@ public class GAlignFrame extends JInternalFrame
 
   }
 
+  protected void loadTreeOfLife_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  protected void loadTreeFam_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  protected void loadTreePfam_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  protected void loadTreeBase_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
+  protected void loadTreeBaseStudy_actionPerformed(ActionEvent e)
+  {
+    // TODO Auto-generated method stub
+
+  }
+
   /**
    * Constructs the entries on the Colour menu (but does not add them to the
    * menu).