aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2011-09-19 15:25:20 (EDT)
committerOleg Besedin2011-09-19 15:25:20 (EDT)
commitd7c903bb8a6f67818a592cec13b61db013d83820 (patch)
tree0db9d781be823fb2a56786864564bd63d6923d69
parent3846e90e292d1216b8193688c6a4f320e3ddb272 (diff)
downloadeclipse.platform.ui-d7c903bb8a6f67818a592cec13b61db013d83820.zip
eclipse.platform.ui-d7c903bb8a6f67818a592cec13b61db013d83820.tar.gz
eclipse.platform.ui-d7c903bb8a6f67818a592cec13b61db013d83820.tar.bz2
Bug 357861 - PartServiceImpl#activate() is called twice on everyv20110919-1925
activation request
-rw-r--r--bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
index 2b842bb..12e529c 100644
--- a/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
+++ b/bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/ui/internal/workbench/PartServiceImpl.java
@@ -555,6 +555,8 @@ public class PartServiceImpl implements EPartService {
modelService.bringToTop(part);
window.getParent().setSelectedElement(window);
+ partActivationHistory.activate(part, activateBranch);
+
Object object = part.getObject();
if (object != null && requiresFocus) {
try {
@@ -567,8 +569,6 @@ public class PartServiceImpl implements EPartService {
"Failed to grant focus via DI to part ({0})", part.getElementId(), e); //$NON-NLS-1$
}
}
-
- partActivationHistory.activate(part, activateBranch);
}
/**