Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2006-10-10 15:15:18 +0000
committerDarin Wright2006-10-10 15:15:18 +0000
commit9c4417480774d39f4648e327ea48e9d3efe20a48 (patch)
tree3586be44f08512f898eb1900515dc6ddae304502
parent2cfc2df6e3454c63fd8a47938baf008a24ee8d42 (diff)
downloadeclipse.platform.debug-9c4417480774d39f4648e327ea48e9d3efe20a48.tar.gz
eclipse.platform.debug-9c4417480774d39f4648e327ea48e9d3efe20a48.tar.xz
eclipse.platform.debug-9c4417480774d39f4648e327ea48e9d3efe20a48.zip
removing getPart() from presentation context
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java8
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/registers/RegistersView.java7
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java11
3 files changed, 25 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java
index 733458279..647e1b008 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/expression/ExpressionView.java
@@ -136,6 +136,14 @@ public class ExpressionView extends VariablesView {
*/
protected int getViewerStyle() {
return SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.VIRTUAL;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getPresentationContextId()
+ */
+ protected String getPresentationContextId() {
+ return IDebugUIConstants.ID_EXPRESSION_VIEW;
}
+
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/registers/RegistersView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/registers/RegistersView.java
index e11798a03..acee47c8e 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/registers/RegistersView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/registers/RegistersView.java
@@ -51,5 +51,12 @@ public class RegistersView extends VariablesView {
protected String getToggleActionLabel() {
return RegistersViewMessages.RegistersView_0;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.debug.internal.ui.views.variables.VariablesView#getPresentationContextId()
+ */
+ protected String getPresentationContextId() {
+ return IDebugUIConstants.ID_REGISTER_VIEW;
+ }
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
index 481b6e66e..1ea39415b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/variables/VariablesView.java
@@ -749,7 +749,7 @@ public class VariablesView extends AbstractDebugView implements IDebugContextLis
// add tree viewer
int style = getViewerStyle();
final TreeModelViewer variablesViewer = new TreeModelViewer(fSashForm, style,
- new DebugModelPresentationContext(IDebugUIConstants.ID_VARIABLE_VIEW, fModelPresentation));
+ new DebugModelPresentationContext(getPresentationContextId(), fModelPresentation));
variablesViewer.getControl().addFocusListener(new FocusAdapter() {
/* (non-Javadoc)
* @see org.eclipse.swt.events.FocusListener#focusGained(FocusEvent)
@@ -770,6 +770,15 @@ public class VariablesView extends AbstractDebugView implements IDebugContextLis
DebugContextManager.getDefault().addDebugContextListener(this, getSite().getWorkbenchWindow());
return variablesViewer;
}
+
+ /**
+ * Returns the presentation context id for this view.
+ *
+ * @return context id
+ */
+ protected String getPresentationContextId() {
+ return IDebugUIConstants.ID_VARIABLE_VIEW;
+ }
/**
* Returns the style bits for the viewer.

Back to the top