Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSynchronizationService.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingType.java48
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingTypeProvider.java30
3 files changed, 80 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSynchronizationService.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSynchronizationService.java
index 380b8b0c5..ead7826fa 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSynchronizationService.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingSynchronizationService.java
@@ -16,6 +16,8 @@ import org.eclipse.jface.util.IPropertyChangeListener;
/**
* Provides facilities related to the synchronization of memory renderings.
+ *
+ * @since 3.1
*/
public interface IMemoryRenderingSynchronizationService {
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingType.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingType.java
new file mode 100644
index 000000000..c63c1dd04
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingType.java
@@ -0,0 +1,48 @@
+/*******************************************************************************
+ * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.debug.ui.memory;
+
+/**
+ * Represents a type of memory rendering contributed via the <code>memoryRenderings</code>
+ * extension point.
+ * <p>
+ * Clients are not intended to implement this interface. Instead, clients contributing a rendering
+ * implement <code>IMemoryRenderingFactory</code> and <code>IMemoryRendering</code>.
+ * </p>
+ * @since 3.1
+ */
+public interface IMemoryRenderingType {
+
+ /**
+ * Returns a label for this type of memory rendering.
+ *
+ * @return a label for this type of memory rendering
+ */
+ public String getLabel();
+
+ /**
+ * Returns the unique identifier for this rendering type.
+ *
+ * @return the unique identifier for this rendering type
+ */
+ public String getId();
+
+ /**
+ * Creates and returns a new rendering of this type.
+ * Return null if the rendering is not to be created. Creation of a memory
+ * has been canceled. No error message will be displayed.
+ * Throws an exception if an error has occurred.
+ *
+ * @return a new rendering of this type
+ */
+ public IMemoryRendering createRendering() throws Exception;
+
+}
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingTypeProvider.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingTypeProvider.java
new file mode 100644
index 000000000..7d63fa6f1
--- /dev/null
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/IMemoryRenderingTypeProvider.java
@@ -0,0 +1,30 @@
+/*******************************************************************************
+ * Copyright (c) 2004 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Common Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.debug.ui.memory;
+
+import org.eclipse.debug.core.model.IMemoryBlock;
+
+
+/**
+ * A rendering type provider allows for dynamic rendering type bindings for a memory block,
+ * and is contributed via memory block type binding.
+ *
+ * @since 3.1
+ */
+public interface IMemoryRenderingTypeProvider {
+
+ /**
+ * Retunrs the rendering types applicable to the given memory block.
+ *
+ * @return a list of rendering types applicable to the given memory block
+ */
+ IMemoryRenderingType [] getRenderingTypes(IMemoryBlock block);
+}

Back to the top