From: Hannu Niemistö Date: Mon, 2 Oct 2017 10:30:17 +0000 (+0300) Subject: (refs #7524) Set Refresh automatically as default in SCLConsole X-Git-Tag: v1.31.0~156^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F1064%2F1;p=simantics%2Fplatform.git (refs #7524) Set Refresh automatically as default in SCLConsole Change-Id: Iddeb05a729d49be1238aa895d5ecc0e17fdb7d53 --- diff --git a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLConsoleView.java b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLConsoleView.java index 63b89a0b5..8b49ea345 100644 --- a/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLConsoleView.java +++ b/bundles/org.simantics.scl.ui/src/org/simantics/scl/ui/console/SCLConsoleView.java @@ -170,6 +170,8 @@ public class SCLConsoleView extends ViewPart { @Override public void createPartControl(Composite parent) { store = new ScopedPreferenceStore(InstanceScope.INSTANCE, PLUGIN_ID); + store.setDefault(REFRESH_AUTOMATICALLY, true); + this.console = new SCLConsole(parent, SWT.NONE); setRefreshAutomatically(store.getBoolean(REFRESH_AUTOMATICALLY), false);