JAL-3253-applet Preferences / StructureViewer fix
[jalview.git] / src / jalview / gui / Preferences.java
index 207fcb8..38bc74c 100755 (executable)
@@ -100,6 +100,8 @@ public class Preferences extends GPreferences
 
   public static final String AUTOASSOCIATE_PDBANDSEQS = "AUTOASSOCIATE_PDBANDSEQS";
 
+  public static final String BLOSUM62_PCA_FOR_NUCLEOTIDE = "BLOSUM62_PCA_FOR_NUCLEOTIDE";
+
   public static final String CENTRE_COLUMN_LABELS = "CENTRE_COLUMN_LABELS";
 
   public static final String CHIMERA_PATH = "CHIMERA_PATH";
@@ -237,8 +239,6 @@ public class Preferences extends GPreferences
 
   public static final List<String> groupURLLinks; // not implemented
 
-  public static final String BLOSUM62_PCA_FOR_NUCLEOTIDE = "BLOSUM62_PCA_FOR_NUCLEOTIDE";
-
   public static final String SHOW_IDENTITY = "SHOW_IDENTITY";
 
   public static final String SHOW_FULLSCREEN = "SHOW_FULLSCREEN";
@@ -458,8 +458,11 @@ public class Preferences extends GPreferences
     addSecondaryStructure.setEnabled(structSelected);
     addTempFactor.setSelected(Cache.getDefault(ADD_TEMPFACT_ANN, false));
     addTempFactor.setEnabled(structSelected);
+    if (!Platform.isJS())
+    {
     structViewer.setSelectedItem(
             Cache.getDefault(STRUCTURE_DISPLAY, ViewerType.JMOL.name()));
+    }
     Dimension d = Cache.getDefaultDim(STRUCTURE_DIMENSIONS,
             DEFAULT_STRUCTURE_DIMENSIONS);
     String s = d.width + "," + d.height;