Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 8ac8852985363bb94614a110c399f026d73926b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*******************************************************************************
 * 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;

/**
 * A content update request for a source viewer.  
 * <p>
 * Clients are not intended to implement this interface.
 * </p>
 * 
 * This interface is experimental.
 */
public interface IDocumentElementContentUpdate extends IDocumentUpdate {

    /**
     * Returns the line number associated with the base element. 
     * Can be outside of the requested line interval.
     * 
     * @return line number associated with the element
     */
    public int getOriginalOffset();

    /**
     * Returns the number of lines requested.
     *  
     * @return number of lines requested
     */
    public int getRequestedLineCount();

    /**
     * Sets the offset of the base element
     * 
     * @param offset offset of the base element
     */
    public void setOffset( int offset );

    /**
     * Sets the number of lines in this update request
     * 
     * @param lineCount number of lines
     */
    public void setLineCount( int lineCount );

    /**
     * Adds a source element for the given line number
     *  
     * @param line line number
     * @param element element to add
     */
    public void addElement( int line, Object element ) throws IndexOutOfBoundsException;

    /**
     * Indicates whether or not the element should be revealed
     *  
     * @return whether or not the element should be revealed
     */
    public boolean reveal();
}

Back to the top