Skip to main content
summaryrefslogtreecommitdiffstats
blob: a2ff86e1d2b2ce92b55f6aa0ff527e03ef4667d2 (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
/*******************************************************************************
 * Copyright (c) 2002 IBM Corporation and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 * IBM - Initial API and implementation
 ******************************************************************************/
package org.eclipse.team.internal.ccvs.core.client.listeners;

import org.eclipse.core.runtime.IStatus;

public interface IConsoleListener {
	/**
	 * Called when a command is invoked.
	 * @param line the command invocation string
	 */
	public void commandInvoked(String line);
	
	/**
	 * Called when a line of message text has been received.
	 * @param line the line of text
	 */
	public void messageLineReceived(String line);
	
	/**
	 * Called when a line of error text has been received.
	 * @param line the line of text
	 */
	public void errorLineReceived(String line);
	
	/**
	 * Called when a command has been completed.
	 * @param status the status code, or null if not applicable
	 * @param exception an exception, or null if not applicable
	 */
	public void commandCompleted(IStatus status, Exception exception);
}

Back to the top