aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSopot Cela2012-11-07 14:01:59 (EST)
committerEric Moffatt2012-11-07 14:01:59 (EST)
commit958dd70aea1be8b756e9adb06f4f91ca74115af8 (patch)
tree63bdf1151ce1c8495b8d6cd910812db8ff79c60f
parent3ca8456b51ad639447cf86250747e9c05ac972e6 (diff)
downloadeclipse.platform.ui-958dd70aea1be8b756e9adb06f4f91ca74115af8.zip
eclipse.platform.ui-958dd70aea1be8b756e9adb06f4f91ca74115af8.tar.gz
eclipse.platform.ui-958dd70aea1be8b756e9adb06f4f91ca74115af8.tar.bz2
Fix for Bug 376821 - Request specific framework event that ends the
startup process
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java7
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java4
2 files changed, 10 insertions, 1 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java
index 43b6db2..293a68d 100644
--- a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java
+++ b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/PartRenderingEngine.java
@@ -972,8 +972,13 @@ public class PartRenderingEngine implements IPresentationEngine {
// torn down
IApplicationContext ac = appContext
.get(IApplicationContext.class);
- if (ac != null)
+ if (ac != null) {
ac.applicationRunning();
+ if (eventBroker != null)
+ eventBroker.post(
+ UIEvents.UILifeCycle.APP_STARTUP_COMPLETE,
+ theApp);
+ }
} else if (uiRoot instanceof MUIElement) {
if (uiRoot instanceof MWindow) {
testShell = (Shell) createGui((MUIElement) uiRoot);
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java
index a9135ff..2bd62a5 100644
--- a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/workbench/UIEvents.java
@@ -239,6 +239,10 @@ public class UIEvents {
* Sent when a perspective is opened
*/
public static final String PERSPECTIVE_OPENED = TOPIC + TOPIC_SEP + "perspOpened"; //$NON-NLS-1$
+ /**
+ * Sent when application startup is complete
+ */
+ public static final String APP_STARTUP_COMPLETE = TOPIC + TOPIC_SEP + "appStartupComplete"; //$NON-NLS-1$
}
/**