blob: aa913e58a6aeefb71f24befc2f913f0f098dab5e (
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
|
/*******************************************************************************
* Copyright (c) 2014 Wind River Systems, Inc. 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:
* Wind River Systems - initial API and implementation
*******************************************************************************/
package org.eclipse.tcf.debug.ui;
import org.eclipse.debug.ui.sourcelookup.ISourceDisplay;
import org.eclipse.ui.texteditor.ITextEditor;
/**
* ITCFSourceDisplay is an interface that is implemented by the TCF debug model.
* A visual element in the debugger view can be adapted to this interface -
* if the element represents a remote TCF object.
* Clients can use this interface to open source text editor.
*
* @noimplement
*/
public interface ITCFSourceDisplay extends ISourceDisplay {
/**
* Open source text editor.
* The editor is shown in currently active Eclipse window.
* Source file name is translated using source lookup settings of the debugger.
* "Source not found" window is shown if the file cannot be located.
* This method should be called on the display thread.
* @param context_id - debug context ID.
* @param source_file_name - compile-time source file name.
* @param line - scroll the editor to reveal this line.
* @return - text editor interface.
*/
ITextEditor displaySource(String context_id, String source_file_name, int line);
}
|