X-Git-Url: https://mograsim.net/gitweb/?a=blobdiff_plain;f=plugins%2Fnet.mograsim.plugin.core%2Fsrc%2Fnet%2Fmograsim%2Fplugin%2FSimulationPreview.java;h=746433b1235cf96ba5a14c93b2efd32201b81062;hb=13577856cd85c46f2cd4ad956332697bc820f425;hp=5fcc1688f6587580de828e45c7f662a98d5c5d8a;hpb=58babf45ae7d259a296656451d796dbe601377a4;p=Mograsim.git diff --git a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/SimulationPreview.java b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/SimulationPreview.java index 5fcc1688..746433b1 100644 --- a/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/SimulationPreview.java +++ b/plugins/net.mograsim.plugin.core/src/net/mograsim/plugin/SimulationPreview.java @@ -32,13 +32,14 @@ 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); LogicModelModifiable model = new LogicModelModifiable(); CoreModelParameters params = new CoreModelParameters(); params.gateProcessTime = 50; + params.hardcodedComponentProcessTime = params.gateProcessTime * 5; params.wireTravelTime = 10; ModelManualSwitch rIn = new ModelManualSwitch(model, 1);