Project: Eclipse_Platform_UI
Bug 404596 The Display should be in the context before PostContextCreate is called
Reported: 2013-03-28 17:27:28 | Status: verified fixed

Currently, the Display isn't added to the context until after workbench.createAndRunUI() is called. Thus you are unable to use the Display with any of the workbench lifecycle hooks such as PostContextCreate. (Calling Display.getDefault() isn't very clean and at some point could introduce bugs.) Furthermore, resources such as Realm & UISynchronize which depend on Display are available in the context before PostContextCreate is invoked. After the default context is created, the workbench Display should be placed into the context before any dependent resources are.

Files changed in fix:
bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java