]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@17127 ac1ea38d-2e2b...
authorkalajainen <kalajainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 11 Aug 2010 12:49:51 +0000 (12:49 +0000)
committerkalajainen <kalajainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Wed, 11 Aug 2010 12:49:51 +0000 (12:49 +0000)
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/SysdynProjectLifeCycle.java

index c30b04aa64b071a411ecb63c6f7c537d465cef27..5ade3179ca7006be83edc97f27accfcef8579d0b 100644 (file)
@@ -6,6 +6,7 @@ import java.util.HashMap;
 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
@@ -154,7 +155,12 @@ public class SysdynProjectLifeCycle implements IProjectLifeCycle{
             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