Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2006-08-02 21:01:03 +0000
committerDarin Wright2006-08-02 21:01:03 +0000
commit1b7f6dd1389f2209d859b52a394d364e89554b9f (patch)
tree110e34e5e33a0e50d13b019e7c19e89990b221ad /org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java
parentde298dbaf34c1f26561723ac9f445768b791ed13 (diff)
downloadeclipse.platform.debug-1b7f6dd1389f2209d859b52a394d364e89554b9f.tar.gz
eclipse.platform.debug-1b7f6dd1389f2209d859b52a394d364e89554b9f.tar.xz
eclipse.platform.debug-1b7f6dd1389f2209d859b52a394d364e89554b9f.zip
Bug 152664 - Separate workbench part from presentation context id
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java
index ed118f1a6..308b5b90f 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/InspectPopupDialog.java
@@ -115,7 +115,13 @@ public class InspectPopupDialog extends DebugPopup {
fVariablesViewer = new VariablesViewer(fSashForm, SWT.NO_TRIM | SWT.VIRTUAL, null);
- fVariablesViewer.setContext(new PresentationContext(view));
+ IPresentationContext context;
+ if (view == null) {
+ context = new PresentationContext(IDebugUIConstants.ID_VARIABLE_VIEW);
+ } else {
+ context = new PresentationContext(view);
+ }
+ fVariablesViewer.setContext(context);
fModelPresentation = new VariablesViewModelPresentation();
fVariablesViewer.setLabelProvider(fModelPresentation);

Back to the top