Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMarc Khouzam2013-11-27 09:47:42 +0000
committerMarc Khouzam2013-12-02 20:41:50 +0000
commiteb3b78ec86a861f72c6086bbbcf2e39fec19a2f2 (patch)
tree2b2854476297da512cc9c90d6619ff5be938eaf6 /debug
parent0071f546d1e2cf904589984776c0414ebf89afdc (diff)
downloadorg.eclipse.cdt-eb3b78ec86a861f72c6086bbbcf2e39fec19a2f2.tar.gz
org.eclipse.cdt-eb3b78ec86a861f72c6086bbbcf2e39fec19a2f2.tar.xz
org.eclipse.cdt-eb3b78ec86a861f72c6086bbbcf2e39fec19a2f2.zip
Bug 418710 - Provide a way to disable "View memory" menu per expression
Add IViewInMemory interface to general CDT to make it available for CDI also. Use IViewInMemory in DSF, and override it for the GDB case. No need to use IViewInMemory.viewInMemory() yet, but it is put in the new interface to be future-proof. Change-Id: Iba9abee6b9bb459b4ec3a4fd72378f77f417643a Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com> Reviewed-on: https://git.eclipse.org/r/18952
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IViewInMemory.java32
1 files changed, 32 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IViewInMemory.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IViewInMemory.java
new file mode 100644
index 00000000000..8b16e10fb0c
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/model/IViewInMemory.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Ericsson 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
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Marc Khouzam (Ericsson) - Initial API and implementation
+ *******************************************************************************/
+package org.eclipse.cdt.debug.core.model;
+
+import org.eclipse.core.runtime.IAdaptable;
+
+/**
+ * Provides the ability to view a variable in the memory view.
+ * @since 7.4
+ */
+public interface IViewInMemory extends IAdaptable {
+
+ /**
+ * Returns whether this element can currently be viewed in the memory view.
+ *
+ * @return whether this element can currently be viewed in the memory view.
+ */
+ boolean canViewInMemory();
+
+ /**
+ * Displays the element in the memory view.
+ */
+ void viewInMemory();
+}

Back to the top