Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2008-04-02 16:42:46 +0000
committerMikhail Khodjaiants2008-04-02 16:42:46 +0000
commitb87d5b3b2e30e710f71062736b8d6eba9bd37f20 (patch)
treeee15e52138b58432531b8ab9ed3f3bd2cd5e8bfe /debug
parent231b11b8abc5312fd1ae527da9ecc181ca4bc93e (diff)
downloadorg.eclipse.cdt-b87d5b3b2e30e710f71062736b8d6eba9bd37f20.tar.gz
org.eclipse.cdt-b87d5b3b2e30e710f71062736b8d6eba9bd37f20.tar.xz
org.eclipse.cdt-b87d5b3b2e30e710f71062736b8d6eba9bd37f20.zip
Added interfaces for content, label and annotation providers.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementAnnotationProvider.java28
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementContentProvider.java36
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementLabelProvider.java28
3 files changed, 92 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementAnnotationProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementAnnotationProvider.java
new file mode 100644
index 0000000000..1813cea1de
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementAnnotationProvider.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2008 ARM Limited 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:
+ * ARM Limited - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.debug.ui.disassembly;
+
+/**
+ * Provides context sensitive annotations for source elements.
+ *
+ * This interface is experimental.
+ */
+public interface IDocumentElementAnnotationProvider {
+
+ /**
+ * Updates the annotations of the specified source elements.
+ *
+ * @param updates each update specifies the element and context
+ * for which annotations are requested and stores the results
+ */
+ public void update( IDocumentElementAnnotationUpdate[] updates );
+}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementContentProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementContentProvider.java
new file mode 100644
index 0000000000..5eb8f2084c
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementContentProvider.java
@@ -0,0 +1,36 @@
+/*******************************************************************************
+ * Copyright (c) 2008 ARM Limited 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:
+ * ARM Limited - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.debug.ui.disassembly;
+
+/**
+ * Provides a content for a virtual source viewer.
+ *
+ * This interface is experimental.
+ */
+public interface IDocumentElementContentProvider {
+
+ /**
+ * Updates the base element of the source viewer.
+ * This method is called when the viewer's input is changed.
+ *
+ * @param update the new input.
+ */
+ public void updateInput( IDocumentBaseChangeUpdate update );
+
+ /**
+ * Updates the source content as requested by the given update.
+ * This method is called when the viewer requires to update it's content.
+ *
+ * @param update specifies the lines to update and stores result
+ */
+ public void updateContent( IDocumentElementContentUpdate update );
+}
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementLabelProvider.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementLabelProvider.java
new file mode 100644
index 0000000000..6308964d63
--- /dev/null
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/disassembly/IDocumentElementLabelProvider.java
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2008 ARM Limited 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:
+ * ARM Limited - Initial API and implementation
+ *******************************************************************************/
+
+package org.eclipse.cdt.debug.ui.disassembly;
+
+/**
+ * Provides context sensitive labels for source elements.
+ *
+ * This interface is experimental.
+ */
+public interface IDocumentElementLabelProvider {
+
+ /**
+ * Updates the specified labels.
+ *
+ * @param updates each update specifies the element and context
+ * for which a label is requested and stores the label attributes
+ */
+ public void update( IDocumentElementLabelUpdate[] updates );
+}

Back to the top