Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 50c0c8140ad0ce018a070cb9e4947cfb962a1db0 (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
/*******************************************************************************
 * Copyright (c) 2016 Ericsson and others.
 *
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License 2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/legal/epl-2.0/
 *
 * SPDX-License-Identifier: EPL-2.0
 *******************************************************************************/
package org.eclipse.cdt.debug.ui.debuggerconsole;

import org.eclipse.debug.core.ILaunch;
import org.eclipse.ui.console.IConsole;
import org.eclipse.ui.part.IPageBookViewPage;

/**
 * @since 8.1
 */
public interface IDebuggerConsole extends IConsole {
	/**
	 * Returns the launch associated with this console.
	 * 
	 * @return the launch associated with this console.
	 */
	ILaunch getLaunch();
	
	/**
	 * Creates and returns a new page for this console. The page is displayed
	 * for this console in the console given view.
	 * 
	 * @param view the view in which the page is to be created
	 * @return a page book view page representation of this console
	 */
	IPageBookViewPage createDebuggerPage(IDebuggerConsoleView view);
	
	/**
	 * Request a re-computation of the name of the console.
	 */
	void resetName();
	
	/**
	 * This console has become selected, the implementation shall use this 
	 * notification to e.g. keep other views in sync with the context of the console
	 */
	void consoleSelected();

	/**
	 * Stop processing but don't dispose this console yet, 
	 * i.e. It's desirable to keep the last I/O information available to the user
	 * @since 8.2
	 */
	default void stop() {
		// Nothing to do by default
	}
}

Back to the top