Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDawid Pakuła2018-03-14 22:41:29 +0000
committerDawid Pakuła2018-03-30 13:48:00 +0000
commitfabbb8db7d601c90cfceb3a7618111061f79ec4a (patch)
tree7df0be69c2ee2dc265ba9b80392035c278e6e191
parent1cc7dfdb42f8604bbad516f2ca7f60e8a99c073d (diff)
downloadeclipse.platform.ui-fabbb8db7d601c90cfceb3a7618111061f79ec4a.tar.gz
eclipse.platform.ui-fabbb8db7d601c90cfceb3a7618111061f79ec4a.tar.xz
eclipse.platform.ui-fabbb8db7d601c90cfceb3a7618111061f79ec4a.zip
Bug 505988 - [Project Explorer] Navigation buttons disappear after working set switchI20180330-2000
TreeViewerFrameSource should handle P_RESET event similar to P_CURRENT_FRAME Change-Id: Ie9aa204ab76c9cbfa0c6f54ad8b1c8a8fbf50b64 Signed-off-by: Dawid Pakuła <zulus@w3des.net>
-rw-r--r--bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/CommonNavigatorActionGroup.java3
-rwxr-xr-xbundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/framelist/TreeViewerFrameSource.java4
2 files changed, 4 insertions, 3 deletions
diff --git a/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/CommonNavigatorActionGroup.java b/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/CommonNavigatorActionGroup.java
index a050a408126..b6b1cbe74ce 100644
--- a/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/CommonNavigatorActionGroup.java
+++ b/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/CommonNavigatorActionGroup.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2003, 2015 IBM Corporation and others.
+ * Copyright (c) 2003, 2018 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
@@ -115,6 +115,7 @@ public class CommonNavigatorActionGroup extends ActionGroup implements IMementoA
commonNavigator.updateTitle();
IActionBars actionBars= commonNavigator.getViewSite().getActionBars();
updateToolBar(actionBars.getToolBarManager());
+ actionBars.updateActionBars();
}
});
diff --git a/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/framelist/TreeViewerFrameSource.java b/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/framelist/TreeViewerFrameSource.java
index df833510ec4..039f182c642 100755
--- a/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/framelist/TreeViewerFrameSource.java
+++ b/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/framelist/TreeViewerFrameSource.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2015 IBM Corporation and others.
+ * Copyright (c) 2000, 2018 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
@@ -167,7 +167,7 @@ public class TreeViewerFrameSource implements IFrameSource {
* Calls <code>frameChanged</code> when the current frame changes.
*/
protected void handlePropertyChange(PropertyChangeEvent event) {
- if (FrameList.P_CURRENT_FRAME.equals(event.getProperty())) {
+ if (FrameList.P_CURRENT_FRAME.equals(event.getProperty()) || FrameList.P_RESET.equals(event.getProperty())) {
frameChanged((TreeFrame) event.getNewValue());
}
}

Back to the top