import org.eclipse.core.runtime.Platform;\r
import org.eclipse.core.runtime.preferences.IEclipsePreferences;\r
import org.eclipse.core.runtime.preferences.InstanceScope;\r
+import org.eclipse.swt.widgets.Display;\r
import org.eclipse.ui.cheatsheets.OpenCheatSheetAction;\r
import org.osgi.service.prefs.BackingStoreException;\r
import org.simantics.databoard.accessor.Accessor;\r
IEclipsePreferences prefs = new InstanceScope().getNode(Activator.PLUGIN_ID);\r
boolean firstSysdynProject = prefs.getBoolean(FIRST_SYSDYN_PROJECT, true);\r
if (firstSysdynProject) {\r
- new OpenCheatSheetAction(CHEATSHEET_ID).run();\r
+ // This should not be here\r
+// Display.getDefault().asyncExec(new Runnable() {\r
+// @Override\r
+// public void run() {\r
+// new OpenCheatSheetAction(CHEATSHEET_ID).run();\r
+// }});\r
\r
// Make a note that the user has created a sysdyn project.\r
try {\r