Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantha Chan2008-04-02 14:22:29 -0400
committerSamantha Chan2008-04-02 14:22:29 -0400
commitb9aeaa7c3dee67402abf48c9b5967e2fd32aba76 (patch)
tree983915236533b44efbfd07107cf34e9eb22bc568 /org.eclipse.debug.ui
parent4ac49a6dec610a2211d46451382d232ca59598c6 (diff)
downloadeclipse.platform.debug-b9aeaa7c3dee67402abf48c9b5967e2fd32aba76.tar.gz
eclipse.platform.debug-b9aeaa7c3dee67402abf48c9b5967e2fd32aba76.tar.xz
eclipse.platform.debug-b9aeaa7c3dee67402abf48c9b5967e2fd32aba76.zip
Bug 225385 - [Memory View] Need ability to disable add/remove rendering actions in RenderingViewPane
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RenderingViewPane.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RenderingViewPane.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RenderingViewPane.java
index ab2084d3a..8a2a3286d 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RenderingViewPane.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/RenderingViewPane.java
@@ -915,6 +915,23 @@ public class RenderingViewPane extends AbstractMemoryViewPane implements IMemory
}
public Control createViewPane(Composite parent, String paneId, String label, boolean canAddRendering, boolean canRemoveRendering) {
+ return doCreateViewPane(parent, paneId, label, canAddRendering, canRemoveRendering);
+ }
+
+ public Control createViewPane(Composite parent, String paneId, String label) {
+ return doCreateViewPane(parent, paneId, label, true, true);
+ }
+
+ /**
+ * @param parent
+ * @param paneId
+ * @param label
+ * @param canAddRendering
+ * @param canRemoveRendering
+ * @return
+ */
+ private Control doCreateViewPane(Composite parent, String paneId, String label, boolean canAddRendering,
+ boolean canRemoveRendering) {
Control control = super.createViewPane(parent, paneId, label);
fCanAddRendering = canAddRendering;
fCanRemoveRendering = canRemoveRendering;

Back to the top