Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 870a25a8d6e3f76bf47d41f7f6af5b6804e91152 (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
/*******************************************************************************
 * Copyright (c) 2016 Ericsson 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
 *******************************************************************************/
package org.eclipse.cdt.debug.ui.debuggerconsole;

import org.eclipse.ui.console.IConsoleListener;

/**
 * @since 8.1
 */
public interface IDebuggerConsoleManager {
	/**
	 * Registers the given listener for console notifications. Has
	 * no effect if an identical listener is already registered.
	 * 
	 * @param listener listener to register
	 */
	public void addConsoleListener(IConsoleListener listener);
	
	/**
	 * Unregisters the given listener for console notifications. Has
	 * no effect if listener is not already registered.
	 * 
	 * @param listener listener to unregister
	 */
	public void removeConsoleListener(IConsoleListener listener);

	/**
	 * Adds the given console to the console manager. Has no effect for
	 * equivalent consoles already registered.
	 * 
	 * @param console console to add
	 */
	public void addConsole(IDebuggerConsole console);
	
	/**
	 * Removes the given console from the console manager.
	 * 
	 * @param console console to remove
	 */
	public void removeConsole(IDebuggerConsole console);
	
	/**
	 * Returns a array of consoles registered with the console manager.
	 * 
	 * @return an array of consoles registered with the console manager
	 */
	public IDebuggerConsole[] getConsoles();
	
	/**
	 * Opens the console view.
	 * If the view is already open, it is brought to the front.
	 */
	public void showConsoleView();
}

Back to the top