Jalview-JS/JAL-3253-applet additional static final preferences
[jalview.git] / src / jalview / gui / ColourMenuHelper.java
index e38b55b..5528e75 100644 (file)
@@ -281,7 +281,7 @@ public class ColourMenuHelper
   static void updatePreferences()
   {
     StringBuilder coloursFound = new StringBuilder();
-    String[] files = Cache.getProperty("USER_DEFINED_COLOURS").split("\\|");
+    String[] files = Cache.getProperty(Preferences.USER_DEFINED_COLOURS).split("\\|");
 
     /*
      * the property does not include the scheme name, it is in the file;
@@ -310,11 +310,11 @@ public class ColourMenuHelper
 
     if (coloursFound.toString().length() > 1)
     {
-      Cache.setProperty("USER_DEFINED_COLOURS", coloursFound.toString());
+      Cache.setProperty(Preferences.USER_DEFINED_COLOURS, coloursFound.toString());
     }
     else
     {
-      Cache.removePropertyNoSave("USER_DEFINED_COLOURS");
+      Cache.removePropertyNoSave(Preferences.USER_DEFINED_COLOURS);
     }
   }
 }