aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSean Kennedy2012-01-18 18:33:41 (EST)
committerPawel Piech2012-01-18 18:33:41 (EST)
commit835bb4b9dd92f1317eea08ce38fcfaed0a73bb31 (patch)
treef32566ba582238f05e5aa32b3d3d6289b99ef49b
parent4627f4d8306a47a42f55bfc62a92670eade4c12f (diff)
downloadeclipse.platform.debug-835bb4b9dd92f1317eea08ce38fcfaed0a73bb31.zip
eclipse.platform.debug-835bb4b9dd92f1317eea08ce38fcfaed0a73bb31.tar.gz
eclipse.platform.debug-835bb4b9dd92f1317eea08ce38fcfaed0a73bb31.tar.bz2
Bug 331463 - [memory] Show rendering pane when rendering added
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryView.java7
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSite2.java29
2 files changed, 35 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryView.java
index bccaccc..edbd75b 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryView.java
@@ -29,6 +29,7 @@ import org.eclipse.debug.ui.IDebugUIConstants;
import org.eclipse.debug.ui.memory.IMemoryRendering;
import org.eclipse.debug.ui.memory.IMemoryRenderingContainer;
import org.eclipse.debug.ui.memory.IMemoryRenderingSite;
+import org.eclipse.debug.ui.memory.IMemoryRenderingSite2;
import org.eclipse.debug.ui.memory.IMemoryRenderingSynchronizationService;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuManager;
@@ -69,7 +70,7 @@ import org.eclipse.ui.part.ViewPart;
*
* @since 3.0
*/
-public class MemoryView extends ViewPart implements IMemoryRenderingSite {
+public class MemoryView extends ViewPart implements IMemoryRenderingSite2 {
protected MemoryViewSelectionProvider fSelectionProvider;
private MemoryViewPartListener fPartListener;
@@ -854,4 +855,8 @@ public class MemoryView extends ViewPart implements IMemoryRenderingSite {
{
return fViewOrientation;
}
+
+ public void setContainerVisible(String id, boolean visible) {
+ showViewPane(visible, id);
+ }
}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSite2.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSite2.java
new file mode 100644
index 0000000..037811e
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSite2.java
@@ -0,0 +1,29 @@
+/*******************************************************************************
+ * Copyright (c) 2011-2012 IBM Corporation 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:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.debug.ui.memory;
+
+/**
+ * Extension to memory site that allows a client to request a rendering container
+ * to become visible.
+ *
+ * @since 3.8
+ */
+public interface IMemoryRenderingSite2 extends IMemoryRenderingSite {
+
+ /**
+ * Sets whether the identified container should be visible.
+ *
+ * @param id identifier of the container to be affected
+ * @param visible whether the given container should be made visible
+ */
+ public void setContainerVisible(String id, boolean visible);
+
+}