Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2005-03-09 20:15:11 +0000
committerDarin Wright2005-03-09 20:15:11 +0000
commitc65e6ed11bbc3e742249a7e1e33450faba1763b5 (patch)
treeb408e81fbc1a6b980178d32e5a889bd5c3d2e39c
parent6d6dccd3a169d9f0065b1017bfad3fe348bf663e (diff)
downloadeclipse.platform.debug-R3_0_maintenance.tar.gz
eclipse.platform.debug-R3_0_maintenance.tar.xz
eclipse.platform.debug-R3_0_maintenance.zip
Bug 74343 - Some contextual views not opening after a perspective switchR3_0_2R3_0_maintenance
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java1
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java8
2 files changed, 9 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
index 92e93a145..df862c2d9 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
@@ -530,6 +530,7 @@ public class LaunchView extends AbstractDebugEventHandlerView implements ISelect
setActive(page.findView(getSite().getId()) != null);
updateObjects();
showEditorForCurrentSelection();
+ fContextListener.clearLastEnabledContexts();
if (isActive()) {
fContextListener.updateForSelection(((IStructuredSelection) getViewer().getSelection()).getFirstElement());
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java
index 46635b66b..eb57279a0 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java
@@ -998,4 +998,12 @@ public class LaunchViewContextListener implements IContextManagerListener {
IWorkbench workbench = PlatformUI.getWorkbench();
workbench.getContextSupport().getContextManager().removeContextManagerListener(this);
}
+
+ /**
+ * Clears the cache of last enabled contexts. Called by the debug view when the pespective
+ * changes.
+ */
+ protected void clearLastEnabledContexts() {
+ lastEnabledIds.clear();
+ }
} \ No newline at end of file

Back to the top