Jalview-JS/JAL-3253 debug comments out
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 16 May 2019 03:07:08 +0000 (22:07 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Thu, 16 May 2019 05:10:57 +0000 (00:10 -0500)
src/jalview/bin/AppletParams.java
src/jalview/bin/JalviewJS2.java

index a6d862f..0ccbdc5 100644 (file)
@@ -150,13 +150,13 @@ public class AppletParams extends HashMap<String, String>
         case "centrecolumnlabels":
           break;
         case "defaultcolour":
-          name = "defaultColour";
+          name = "DEFAULT_COLOUR"; // defaultColour
           break;
         case "defaultcolournuc":
-          name = "defaultColourNuc";
+          name = "DEFAULT_COLOUR_NUC";// defaultColourNuc
           break;
         case "defaultcolourprot":
-          name = "defaultColourProt";
+          name = "DEFAULT_COLOUR_PROT";// defaultColourProt";
           break;
         case "enablesplitframe":
           name = "enableSplitFrame";
index 26110f8..5079dee 100644 (file)
@@ -20,16 +20,22 @@ public class JalviewJS2
 
   static {
     /**
-     * @j2sNative
+     * @ could do it this way:
      * 
-     *            J2S.thisApplet.__Info.args =
-     *            ["open","examples/uniref50.fa","features",
-     *            "examples/exampleFeatures.txt"];
+     * j2sNative
+     * 
+     * J2S.thisApplet.__Info.args = [ "open","examples/uniref50.fa",
+     * "features","examples/exampleFeatures.txt" ];
      */
   }
 
   public static void main(String[] args) throws Exception
   {
+    if (args.length == 0)
+    {
+      args = new String[] { "open", "examples/uniref50.fa", "features",
+          "examples/exampleFeatures.txt" };
+    }
     Jalview.main(args);
        //showFocusTimer();
 }