JAL-3518 separation of ChimeraXManager, pull up of closeViewer etc
[jalview.git] / src / jalview / gui / JalviewChimeraXBindingModel.java
index c685f0f..5b7a928 100644 (file)
@@ -10,12 +10,12 @@ import jalview.datamodel.SequenceI;
 import jalview.ext.rbvi.chimera.ChimeraXCommands;
 import jalview.gui.StructureViewer.ViewerType;
 import jalview.io.DataSourceType;
+import jalview.structure.AtomSpec;
 import jalview.structure.StructureCommand;
 import jalview.structure.StructureSelectionManager;
 
 public class JalviewChimeraXBindingModel extends JalviewChimeraBindingModel
 {
-
   public static final String CHIMERAX_SESSION_EXTENSION = ".cxs";
 
   public JalviewChimeraXBindingModel(ChimeraViewFrame chimeraViewFrame,
@@ -88,4 +88,14 @@ public class JalviewChimeraXBindingModel extends JalviewChimeraBindingModel
     return String.valueOf(pdbfnum + 1);
   }
 
+  /**
+   * Returns a model of the structure positions described by the ChimeraX format atomspec
+   * @param atomSpec
+   * @return
+   */
+  protected AtomSpec parseAtomSpec(String atomSpec)
+  {
+    return AtomSpec.fromChimeraXAtomspec(atomSpec);
+  }
+
 }