1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Added interfaces for content, label and annotation providers.

This commit is contained in:
Mikhail Khodjaiants 2008-04-02 16:42:46 +00:00
parent 231b11b8ab
commit b87d5b3b2e
3 changed files with 92 additions and 0 deletions

View file

@ -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 );
}

View file

@ -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 );
}

View file

@ -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 );
}