JAL-2295 set attributes commands include feature value, sent via file
[jalview.git] / src / jalview / ext / rbvi / chimera / JalviewChimeraBinding.java
index d94a3c2..8601b1b 100644 (file)
@@ -1122,7 +1122,6 @@ public abstract class JalviewChimeraBinding extends AAStructureBindingModel
    */
   public void sendFeaturesToChimera(AlignmentViewPanel avp)
   {
-    // TODO send a command per feature with the range of residues it applies to
     AlignmentI alignment = avp.getAlignment();
     FeatureRenderer fr = getFeatureRenderer(avp);
 
@@ -1143,10 +1142,11 @@ public abstract class JalviewChimeraBinding extends AAStructureBindingModel
     StructureMappingcommandSet commandSet = ChimeraCommands
             .getSetAttributeCommandsForFeatures(getSsm(), files,
                     getSequence(), fr, alignment);
-    for (String command : commandSet.commands)
-    {
-      sendAsynchronousCommand(command, null);
-    }
+    // for (String command : commandSet.commands)
+    // {
+    // sendAsynchronousCommand(command, null);
+    // }
+    sendCommandsByFile(commandSet.commands);
   }
 
   /**