From: kalajainen Date: Wed, 11 Aug 2010 12:49:51 +0000 (+0000) Subject: git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17127 ac1ea38d-2e2b... X-Git-Tag: simantics-1.2.0~116 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=2b02a623c89e23570bc1b5199ffdb49ed2fe381b;p=simantics%2Fsysdyn.git git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17127 ac1ea38d-2e2b-0410-8846-a27921b304fc --- 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 {