JAL-3518 more extraction of ChimeraX commands as overrides
[jalview.git] / src / jalview / gui / ChimeraViewFrame.java
index 22336b9..ab5ee7a 100644 (file)
@@ -164,9 +164,9 @@ public class ChimeraViewFrame extends StructureViewerBase
   /**
    * Send a command to Chimera to create residue attributes for Jalview features
    * <p>
-   * The syntax is: setattr r <attName> <attValue> <atomSpec>
+   * The syntax is: setattr r &lt;attName&gt; &lt;attValue&gt; &lt;atomSpec&gt;
    * <p>
-   * For example: setattr r jv:chain "Ferredoxin-1, Chloroplastic" #0:94.A
+   * For example: setattr r jv_chain "Ferredoxin-1, Chloroplastic" #0:94.A
    */
   protected void sendFeaturesToChimera()
   {
@@ -650,9 +650,7 @@ public class ChimeraViewFrame extends StructureViewerBase
   {
     try
     {
-      String url = jmb.isChimeraX()
-              ? "http://www.rbvi.ucsf.edu/chimerax/docs/user/index.html"
-              : "https://www.cgl.ucsf.edu/chimera/docs/UsersGuide";
+      String url = jmb.getHelpURL();
       BrowserLauncher.openURL(url);
     } catch (IOException ex)
     {
@@ -682,7 +680,7 @@ public class ChimeraViewFrame extends StructureViewerBase
     {
       if (pathUsed == null)
       {
-        String suffix = jmb.isChimeraX() ? ".cxs" : ".py";
+        String suffix = jmb.getSessionFileExtension();
         File tempFile = File.createTempFile("chimera", suffix);
         tempFile.deleteOnExit();
         pathUsed = tempFile.getPath();