aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2012-01-31 10:05:33 (EST)
committerOleg Besedin2012-01-31 10:05:33 (EST)
commit2e7be1c5681fb49132e593d4072a42d5eff8db7e (patch)
tree203be7d8849281fda28989982e7f3224e82171ba
parent435a1052e7ed59def5756fc6d97cc01a129be9f9 (diff)
downloadeclipse.platform.ui-2e7be1c5681fb49132e593d4072a42d5eff8db7e.zip
eclipse.platform.ui-2e7be1c5681fb49132e593d4072a42d5eff8db7e.tar.gz
eclipse.platform.ui-2e7be1c5681fb49132e593d4072a42d5eff8db7e.tar.bz2
Bug 369447 - Simplify selection service implementationv20120131-1505
-rw-r--r--bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
index aaf121c..3465737 100644
--- a/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
+++ b/bundles/org.eclipse.e4.ui.workbench.swt/src/org/eclipse/e4/ui/internal/workbench/swt/E4Application.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2010 IBM Corporation and others.
+ * Copyright (c) 2009, 2012 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -48,8 +48,8 @@ import org.eclipse.e4.ui.internal.workbench.ModelServiceImpl;
import org.eclipse.e4.ui.internal.workbench.PlaceholderResolver;
import org.eclipse.e4.ui.internal.workbench.ReflectionContributionFactory;
import org.eclipse.e4.ui.internal.workbench.ResourceHandler;
-import org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl;
import org.eclipse.e4.ui.internal.workbench.SelectionAggregator;
+import org.eclipse.e4.ui.internal.workbench.SelectionServiceImpl;
import org.eclipse.e4.ui.internal.workbench.WorkbenchLogger;
import org.eclipse.e4.ui.model.application.MAddon;
import org.eclipse.e4.ui.model.application.MApplication;
@@ -782,6 +782,8 @@ public class E4Application implements IApplication {
public void notifyChanged(Notification notification) {
if (notification.getFeatureID(MApplication.class) != UiPackageImpl.ELEMENT_CONTAINER__CHILDREN)
return;
+ if (notification.getEventType() != Notification.ADD)
+ return;
MWindow childWindow = (MWindow) notification.getNewValue();
initializeWindowServices(childWindow);
}