From daaee9b8ffb62be6e1672e5c376dfbf3fe4ac64c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 3 Nov 2016 09:12:25 +0000 Subject: [PATCH] JAL-2295 step 1 new menu item to transfer Jalview attributes (no action yet) --- src/jalview/gui/ChimeraViewFrame.java | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/ChimeraViewFrame.java b/src/jalview/gui/ChimeraViewFrame.java index ce719d0..b9fb2c9 100644 --- a/src/jalview/gui/ChimeraViewFrame.java +++ b/src/jalview/gui/ChimeraViewFrame.java @@ -181,6 +181,24 @@ public class ChimeraViewFrame extends StructureViewerBase // TODO Auto-generated method stub } }); + JMenuItem writeFeatures = new JMenuItem("Write Jalview features"); + writeFeatures + .setToolTipText("Create attributes in Chimera for features in Jalview"); + writeFeatures.addActionListener(new ActionListener() + { + @Override + public void actionPerformed(ActionEvent e) + { + sendFeaturesToChimera(); + } + }); + viewerActionMenu.add(writeFeatures); + } + + protected void sendFeaturesToChimera() + { + // TODO Auto-generated method stub + } /** @@ -1040,10 +1058,10 @@ public class ChimeraViewFrame extends StructureViewerBase setChainMenuItems(jmb.getChainNames()); this.setTitle(jmb.getViewerTitle("Chimera", true)); - if (jmb.getPdbFile().length > 1 && jmb.getSequence().length > 1) - { + // if (jmb.getPdbFile().length > 1 && jmb.getSequence().length > 1) + // { viewerActionMenu.setVisible(true); - } + // } if (!jmb.isLoadingFromArchive()) { seqColour_actionPerformed(null); -- 1.7.10.2