From 2b02a623c89e23570bc1b5199ffdb49ed2fe381b Mon Sep 17 00:00:00 2001 From: kalajainen Date: Wed, 11 Aug 2010 12:49:51 +0000 Subject: [PATCH] git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17127 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/project/SysdynProjectLifeCycle.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java index c30b04aa..5ade3179 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java @@ -6,6 +6,7 @@ import java.util.HashMap; import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.preferences.IEclipsePreferences; import org.eclipse.core.runtime.preferences.InstanceScope; +import org.eclipse.swt.widgets.Display; import org.eclipse.ui.cheatsheets.OpenCheatSheetAction; import org.osgi.service.prefs.BackingStoreException; import org.simantics.databoard.accessor.Accessor; @@ -154,7 +155,12 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{ IEclipsePreferences prefs = new InstanceScope().getNode(Activator.PLUGIN_ID); boolean firstSysdynProject = prefs.getBoolean(FIRST_SYSDYN_PROJECT, true); if (firstSysdynProject) { - new OpenCheatSheetAction(CHEATSHEET_ID).run(); + // This should not be here +// Display.getDefault().asyncExec(new Runnable() { +// @Override +// public void run() { +// new OpenCheatSheetAction(CHEATSHEET_ID).run(); +// }}); // Make a note that the user has created a sysdyn project. try { -- 2.47.1