Improved preference handling in plugin.core
[Mograsim.git] / plugins / net.mograsim.plugin.core / src / net / mograsim / plugin / SimulationPreview.java
index 5fcc168..92d45a5 100644 (file)
@@ -32,7 +32,7 @@ public class SimulationPreview implements IThemePreview
        {
                oldPreferences = Preferences.current();
 
-               currentThemePreferences = new ThemePreferences(currentTheme);
+               currentThemePreferences = new EclipsePreferences(currentTheme, MograsimActivator.instance().getPreferenceStore());
                // TODO this will change the global preferences; so if another LogicUICanvas redraws, it will use the "new" colors too.
                Preferences.setPreferences(currentThemePreferences);