JAL-2295 (unoptimised) write Jalview features as Chimera attributes
[jalview.git] / src / jalview / gui / ChimeraViewFrame.java
index b9fb2c9..ae3ff9e 100644 (file)
@@ -181,9 +181,10 @@ 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");
+    JMenuItem writeFeatures = new JMenuItem(
+            MessageManager.getString("label.create_chimera_attributes"));
+    writeFeatures.setToolTipText(MessageManager
+            .getString("label.create_chimera_attributes_tip"));
     writeFeatures.addActionListener(new ActionListener()
     {
       @Override
@@ -195,10 +196,16 @@ public class ChimeraViewFrame extends StructureViewerBase
     viewerActionMenu.add(writeFeatures);
   }
 
+  /**
+   * Send a command to Chimera to create residue attributes for Jalview features
+   * <p>
+   * The syntax is: setattr r <attName> <attValue> <atomSpec>
+   * <p>
+   * For example: setattr r jv:chain "Ferredoxin-1, Chloroplastic" #0:94.A
+   */
   protected void sendFeaturesToChimera()
   {
-    // TODO Auto-generated method stub
-
+    jmb.sendFeaturesToChimera(getAlignmentPanel());
   }
 
   /**