From: kjvdheide Date: Fri, 17 Nov 2017 02:24:58 +0000 (+0000) Subject: JAL-281 added menu items and listeners to load from URL/Db X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c3d1337762c2c72beb9214d3feb27e2c66efb22e;p=jalview.git JAL-281 added menu items and listeners to load from URL/Db --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index fa3f489..21b602f 100644 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -3929,6 +3929,18 @@ public class AlignFrame extends GAlignFrame implements DropTargetListener, } } + @Override + protected void loadTreeUrlItem_actionPerformed(ActionEvent e) + { + + } + + @Override + protected void loadTreeDbItem_actionPerformed(ActionEvent e) + { + + } + public TreePanel showNewickTree(NewickFile nf, String treeTitle) { return showNewickTree(nf, treeTitle, 600, 500, 4, 5); diff --git a/src/jalview/jbgui/GAlignFrame.java b/src/jalview/jbgui/GAlignFrame.java index d9eb259..4073fcc 100755 --- a/src/jalview/jbgui/GAlignFrame.java +++ b/src/jalview/jbgui/GAlignFrame.java @@ -1077,11 +1077,11 @@ public class GAlignFrame extends JInternalFrame } }); - JMenuItem loadTreeMenuItem = new JMenuItem( + JMenuItem loadTreeFile = new JMenuItem( MessageManager.getString("label.from_file")); // loadTreeMenuItem.setActionCommand( // MessageManager.getString()); - loadTreeMenuItem.addActionListener(new ActionListener() + loadTreeFile.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) @@ -1090,6 +1090,28 @@ public class GAlignFrame extends JInternalFrame } }); + JMenuItem loadTreeUrl = new JMenuItem( + MessageManager.getString("label.from_url")); + loadTreeUrl.addActionListener(new ActionListener() + { + @Override + public void actionPerformed(ActionEvent e) + { + loadTreeUrlItem_actionPerformed(e); + } + }); + + JMenuItem loadTreeDb = new JMenuItem( + MessageManager.getString("FIX ME")); + loadTreeDb.addActionListener(new ActionListener() + { + @Override + public void actionPerformed(ActionEvent e) + { + loadTreeDbItem_actionPerformed(e); + } + }); + scaleAbove.setVisible(false); scaleAbove.setText(MessageManager.getString("action.scale_above")); scaleAbove.addActionListener(new ActionListener() @@ -1689,7 +1711,9 @@ public class GAlignFrame extends JInternalFrame JMenu fileMenu = new JMenu(MessageManager.getString("action.file")); - loadTreeMenu.add(loadTreeMenuItem); + loadTreeMenu.add(loadTreeFile); + loadTreeMenu.add(loadTreeUrl); + loadTreeMenu.add(loadTreeDb); alignFrameMenuBar.add(fileMenu); alignFrameMenuBar.add(editMenu); @@ -2375,6 +2399,16 @@ public class GAlignFrame extends JInternalFrame } + protected void loadTreeUrlItem_actionPerformed(ActionEvent e) + { + + } + + protected void loadTreeDbItem_actionPerformed(ActionEvent e) + { + + } + /** * Template method to handle the 'load T-Coffee scores' menu event. *