KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > internal > ccvs > core > client > listeners > IConsoleListener


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.team.internal.ccvs.core.client.listeners;
12
13 import org.eclipse.core.runtime.IStatus;
14 import org.eclipse.team.internal.ccvs.core.client.Session;
15
16 public interface IConsoleListener {
17     /**
18      * Called when a command is invoked.
19      * @param session the session that the command is being executed over
20      * @param line the command invocation string
21      */

22     public void commandInvoked(Session session, String JavaDoc line);
23     
24     /**
25      * Called when a line of message text has been received.
26      * @param session the session that the command is being executed over
27      * @param line the line of text
28      * @param status the status returned from the command message parser
29      */

30     public void messageLineReceived(Session session, String JavaDoc line, IStatus status);
31     
32     /**
33      * Called when a line of error text has been received.
34      * @param session the session that the command is being executed over
35      * @param line the line of text
36      * @param status the status returned from the command message parser
37      */

38     public void errorLineReceived(Session session, String JavaDoc line, IStatus status);
39     
40     /**
41      * Called when a command has been completed.
42      * @param session the session that the command is being executed over
43      * @param status the status code, or null if not applicable
44      * @param exception an exception, or null if not applicable
45      */

46     public void commandCompleted(Session session, IStatus status, Exception JavaDoc exception);
47 }
48
Popular Tags