JAL-2295 step 1 new menu item to transfer Jalview attributes (no action
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 3 Nov 2016 09:12:25 +0000 (09:12 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 3 Nov 2016 09:12:25 +0000 (09:12 +0000)
yet)

src/jalview/gui/ChimeraViewFrame.java

index ce719d0..b9fb2c9 100644 (file)
@@ -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);