JAL-3210 Barebones gradle/buildship/eclipse. See README
[jalview.git] / src / jalview / gui / ColourMenuHelper.java
index 5528e75..6eab07d 100644 (file)
@@ -158,7 +158,7 @@ public class ColourMenuHelper
             ActionListener al = radioItem.getActionListeners()[0];
             radioItem.removeActionListener(al);
             int option = JvOptionPane.showInternalConfirmDialog(
-                    Desktop.getDesktopPane(),
+                    Desktop.desktop,
                     MessageManager
                             .getString("label.remove_from_default_list"),
                     MessageManager
@@ -281,7 +281,7 @@ public class ColourMenuHelper
   static void updatePreferences()
   {
     StringBuilder coloursFound = new StringBuilder();
-    String[] files = Cache.getProperty(Preferences.USER_DEFINED_COLOURS).split("\\|");
+    String[] files = Cache.getProperty("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(Preferences.USER_DEFINED_COLOURS, coloursFound.toString());
+      Cache.setProperty("USER_DEFINED_COLOURS", coloursFound.toString());
     }
     else
     {
-      Cache.removePropertyNoSave(Preferences.USER_DEFINED_COLOURS);
+      Cache.applicationProperties.remove("USER_DEFINED_COLOURS");
     }
   }
 }