aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJens K├╝bler2013-04-18 14:32:10 (EDT)
committerEric Moffatt2013-04-18 14:32:43 (EDT)
commit91b8a59e7fd7e5ca6bfbd2d6336d311afcf85972 (patch)
tree1294ff2fb46f4ec5898136ce7939d764f7de155b
parentecc24a3208fa0c32e882a8abd82749b0d265708d (diff)
downloadeclipse.platform.ui-91b8a59e7fd7e5ca6bfbd2d6336d311afcf85972.zip
eclipse.platform.ui-91b8a59e7fd7e5ca6bfbd2d6336d311afcf85972.tar.gz
eclipse.platform.ui-91b8a59e7fd7e5ca6bfbd2d6336d311afcf85972.tar.bz2
Fix for Bug 379212 - IPerspectiveListener3.perspectiveOpened is not
called on opening a new perspective
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java3
1 files changed, 3 insertions, 0 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 2e3bfb1..eb98633 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
@@ -1605,6 +1605,8 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
}
modelService.removePerspectiveModel(persp, window);
modelToPerspectiveMapping.remove(persp);
+
+ legacyWindow.firePerspectiveClosed(this, desc);
}
}
@@ -3680,6 +3682,7 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
modelPerspective.getContext().activate();
+ legacyWindow.firePerspectiveOpened(this, perspective);
UIEvents.publishEvent(UIEvents.UILifeCycle.PERSPECTIVE_OPENED, modelPerspective);
}