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 00000000000..1813cea1dea --- /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 00000000000..5eb8f2084c8 --- /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 00000000000..6308964d63e --- /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 ); +}