aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemy Suen2011-07-14 12:39:00 (EDT)
committerPaul Webster2011-08-25 10:21:54 (EDT)
commit156108a4fe73670b47376201e74a973cc231a39b (patch)
tree5befbefbd676bd5484af5de0759bcdc8d58f5818
parentb8ab197ee3637cccb775fcfdba81f0ee91fdb687 (diff)
downloadeclipse.platform.ui-156108a4fe73670b47376201e74a973cc231a39b.zip
eclipse.platform.ui-156108a4fe73670b47376201e74a973cc231a39b.tar.gz
eclipse.platform.ui-156108a4fe73670b47376201e74a973cc231a39b.tar.bz2
Bug 352135 [Compatibility] Selection listeners are not notified before
part activation notifications The selection service was changed to have it notify its listeners of the active part having changed before generic part listeners were notified. This matches the notification behaviour of 3.x.
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
index 3b45512..988c481 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java
@@ -157,14 +157,14 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
class E4PartListener implements org.eclipse.e4.ui.workbench.modeling.IPartListener {
public void partActivated(MPart part) {
- updateActivations(part);
- firePartActivated(part);
-
// update the workbench window's current selection with the active
// part's selection
SelectionService service = (SelectionService) getWorkbenchWindow()
.getSelectionService();
service.updateSelection(getWorkbenchPart(part));
+
+ updateActivations(part);
+ firePartActivated(part);
}
public void partBroughtToTop(MPart part) {