Index: /applications/editors/josm/plugins/colorscheme/build.xml
===================================================================
--- /applications/editors/josm/plugins/colorscheme/build.xml	(revision 16382)
+++ /applications/editors/josm/plugins/colorscheme/build.xml	(revision 16383)
@@ -27,5 +27,5 @@
                 <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
                 <attribute name="Plugin-Description" value="Allows the user to create different color schemes and to switch between them. Just change the colors and create a new scheme. Used to switch to a white background with matching colors for better visibility in bright sunlight. See dialog in JOSM's preferences and 'Map Settings' (strange but true :-)" />
-                <attribute name="Plugin-Mainversion" value="1180"/>
+                <attribute name="Plugin-Mainversion" value="1742"/>
                 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
             </manifest>
Index: /applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java
===================================================================
--- /applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java	(revision 16382)
+++ /applications/editors/josm/plugins/colorscheme/src/at/dallermassl/josm/plugin/colorscheme/ColorSchemePreference.java	(revision 16383)
@@ -40,11 +40,11 @@
     private List<String>colorKeys;
     private ColorPreference colorPreference;
-    
+
     /**
-     * Default Constructor 
+     * Default Constructor
      */
     public ColorSchemePreference() {
     }
-    
+
 
     /* (non-Javadoc)
@@ -58,5 +58,5 @@
         schemesList = new JList(listModel);
         String schemes = Main.pref.get(PREF_KEY_SCHEMES_NAMES);
-        StringTokenizer st = new StringTokenizer(schemes, ";");        
+        StringTokenizer st = new StringTokenizer(schemes, ";");
         String schemeName;
         while (st.hasMoreTokens()) {
@@ -72,5 +72,5 @@
                 else {
                     String schemeName = (String) listModel.get(schemesList.getSelectedIndex());
-                    getColorPreference().setColorModel(getColorMap(schemeName));
+                    getColorPreference(gui).setColorModel(getColorMap(schemeName));
                 }
             }
@@ -83,5 +83,5 @@
                     return;
                 schemeName = schemeName.replaceAll("\\.", "_");
-                setColorScheme(schemeName, getColorPreference().getColorModel());
+                setColorScheme(schemeName, getColorPreference(gui).getColorModel());
                 listModel.addElement(schemeName);
                 saveSchemeNamesToPref();
@@ -118,7 +118,7 @@
         buttonPanel.add(deleteScheme, GBC.std().insets(0,5,5,0));
     }
-    
+
     /**
-     * Saves the names of the schemes to the preferences. 
+     * Saves the names of the schemes to the preferences.
      */
     public void saveSchemeNamesToPref() {
@@ -129,5 +129,5 @@
             Main.pref.put(PREF_KEY_SCHEMES_NAMES, sb.toString().substring(1));
         } else
-            Main.pref.put(PREF_KEY_SCHEMES_NAMES, null);        
+            Main.pref.put(PREF_KEY_SCHEMES_NAMES, null);
     }
 
@@ -135,5 +135,5 @@
         return false;// nothing to do
     }
-    
+
     /**
      * Remove all color entries for the given scheme from the preferences.
@@ -145,7 +145,7 @@
         for(String key : colors.keySet()) {
             Main.pref.put(key, null);
-        }       
+        }
     }
-    
+
     /**
      * Copy all color entries from the given map to entries in preferences with the scheme name.
@@ -160,7 +160,7 @@
         }
     }
-    
+
     /**
-     * Reads all colors for a scheme and returns them in a map (key = color key without prefix, 
+     * Reads all colors for a scheme and returns them in a map (key = color key without prefix,
      * value = html color code).
      * @param schemeName the name of the scheme.
@@ -177,7 +177,7 @@
     }
 
-    public ColorPreference getColorPreference() {
+    public ColorPreference getColorPreference(PreferenceDialog gui) {
         if(colorPreference == null) {
-            for(PreferenceSetting setting : PreferenceDialog.settings) {
+            for(PreferenceSetting setting : gui.getSettings()) {
                 if(setting instanceof ColorPreference) {
                     colorPreference = (ColorPreference) setting;
