JAL-1152 new Structure tab on Preferences for SS derivation / annotation
[jalview.git] / src / jalview / jbgui / GAlignFrame.java
index a7852b4..1e67ff7 100755 (executable)
@@ -23,6 +23,7 @@ package jalview.jbgui;
 import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
 import jalview.bin.Cache;
 import jalview.gui.JvSwingUtils;
+import jalview.gui.Preferences;
 import jalview.schemes.ColourSchemeProperty;
 import jalview.util.MessageManager;
 
@@ -1140,7 +1141,7 @@ public class GAlignFrame extends JInternalFrame
       }
     });
     SequenceAnnotationOrder sortAnnotationsBy = SequenceAnnotationOrder
-            .valueOf(Cache.getDefault(Cache.SORT_ANNOTATIONS,
+            .valueOf(Cache.getDefault(Preferences.SORT_ANNOTATIONS,
                     SequenceAnnotationOrder.NONE.name()));
     sortAnnBySequence.setText(MessageManager
             .getString("label.sort_annotations_by_sequence"));
@@ -1422,7 +1423,8 @@ public class GAlignFrame extends JInternalFrame
     });
 
     showAutoFirst.setText(MessageManager.getString("label.show_first"));
-    showAutoFirst.setState(Cache.getDefault(Cache.SHOW_AUTOCALC_ABOVE,
+    showAutoFirst.setState(Cache.getDefault(
+            Preferences.SHOW_AUTOCALC_ABOVE,
             false));
     showAutoFirst.addActionListener(new ActionListener()
     {