aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWojciech Sudol2014-02-26 22:53:03 (EST)
committerGerrit Code Review @ Eclipse.org2014-02-28 09:19:01 (EST)
commit2d9e490d01a99a7ee7801e66d50d1435af00b109 (patch)
tree1f713e45e5d088c2508d630a0b94e7ed21a882f9
parent6ffea9c4394ceebe85863b26ec0877c30cd01ffd (diff)
downloadeclipse.platform.ui-2d9e490d01a99a7ee7801e66d50d1435af00b109.zip
eclipse.platform.ui-2d9e490d01a99a7ee7801e66d50d1435af00b109.tar.gz
eclipse.platform.ui-2d9e490d01a99a7ee7801e66d50d1435af00b109.tar.bz2
Bug 380321 - View management does not respect "Do not open..." settingrefs/changes/31/22631/3
Change-Id: I4affd80d4e08ebfe62701e3d523f1451596ad31d Signed-off-by: Wojciech Sudol <wojciech.sudol@pl.ibm.com>
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java17
1 files changed, 12 insertions, 5 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 74d48dc..1a931a6 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
@@ -1206,8 +1206,6 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
part = showPart(mode, part);
ViewReference ref = getViewReference(part);
- legacyWindow.firePerspectiveChanged(this, getPerspective(), ref, CHANGE_VIEW_SHOW);
- legacyWindow.firePerspectiveChanged(this, getPerspective(), CHANGE_VIEW_SHOW);
return (IViewPart) ref.getPart(true);
}
@@ -2551,9 +2549,6 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
}
}
}
-
- // Notify interested listeners after the hide
- legacyWindow.firePerspectiveChanged(this, getPerspective(), CHANGE_VIEW_HIDE);
}
public void hideView(IViewPart view) {
@@ -4884,6 +4879,12 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
if (part instanceof IPageChangeProvider) {
((IPageChangeProvider) part).addPageChangedListener(pageChangedListener);
}
+
+ if (compatibilityPart instanceof CompatibilityView) {
+ legacyWindow.firePerspectiveChanged(this, getPerspective(), partReference,
+ CHANGE_VIEW_SHOW);
+ legacyWindow.firePerspectiveChanged(this, getPerspective(), CHANGE_VIEW_SHOW);
+ }
}
public void firePartClosed(CompatibilityPart compatibilityPart) {
@@ -4946,6 +4947,12 @@ public class WorkbenchPage extends CompatibleWorkbenchPage implements
if (part instanceof IPageChangeProvider) {
((IPageChangeProvider) part).removePageChangedListener(pageChangedListener);
}
+
+ if (compatibilityPart instanceof CompatibilityView) {
+ legacyWindow.firePerspectiveChanged(this, getPerspective(), partReference,
+ CHANGE_VIEW_HIDE);
+ legacyWindow.firePerspectiveChanged(this, getPerspective(), CHANGE_VIEW_HIDE);
+ }
}
private void firePartBroughtToTop(MPart part) {