public class ConsoleColorProvider extends Object implements IConsoleColorProvider
Clients implementing a console color provider should subclass this class.
| Constructor and Description |
|---|
ConsoleColorProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
connect(IProcess process,
IConsole console)
Connects this color provider to the given process and console.
|
void |
disconnect()
Disconnects this color provider.
|
Color |
getColor(String streamIdentifer)
Returns the color to draw output associated with the given stream.
|
protected IConsole |
getConsole()
Returns the console this color provider is connected to, or
null if none. |
protected IProcess |
getProcess()
Returns the process this color provider is providing color for, or
null if none. |
boolean |
isReadOnly()
Returns whether the console associated with this color provider's
process can currently accept keyboard input.
|
public void connect(IProcess process, IConsole console)
IConsoleColorProviderconnect in interface IConsoleColorProviderprocess - the process to connect this color provider toconsole - the console to connect this color provider topublic void disconnect()
IConsoleColorProviderdisconnect in interface IConsoleColorProviderpublic boolean isReadOnly()
IConsoleColorProviderisReadOnly in interface IConsoleColorProviderpublic Color getColor(String streamIdentifer)
IConsoleColorProvidergetColor in interface IConsoleColorProviderstreamIdentifer - the identifier of the streamprotected IProcess getProcess()
null if none.null if noneprotected IConsole getConsole()
null if none.null if noneGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.