Package org.eclipse.debug.ui.console
Class ConsoleColorProvider
java.lang.Object
org.eclipse.debug.ui.console.ConsoleColorProvider
- All Implemented Interfaces:
IConsoleColorProvider
Default console color provider for a process. Colors output to standard
out, in, and error, as specified by user preferences.
Clients implementing a console color provider should subclass this class.
- Since:
- 2.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConnects this color provider to the given process and console.voidDisconnects this color provider.Returns the color to draw output associated with the given stream.protected IConsoleReturns the console this color provider is connected to, ornullif none.protected IProcessReturns the process this color provider is providing color for, ornullif none.booleanReturns whether the console associated with this color provider's process can currently accept keyboard input.
-
Constructor Details
-
ConsoleColorProvider
public ConsoleColorProvider()
-
-
Method Details
-
connect
Description copied from interface:IConsoleColorProviderConnects this color provider to the given process and console. This color provider should connect its streams to the given console document.- Specified by:
connectin interfaceIConsoleColorProvider- Parameters:
process- the process to connect this color provider toconsole- the console to connect this color provider to
-
disconnect
public void disconnect()Description copied from interface:IConsoleColorProviderDisconnects this color provider.- Specified by:
disconnectin interfaceIConsoleColorProvider
-
isReadOnly
public boolean isReadOnly()Description copied from interface:IConsoleColorProviderReturns whether the console associated with this color provider's process can currently accept keyboard input. This attribute is dynamic and may change over the lifetime of a process/document.- Specified by:
isReadOnlyin interfaceIConsoleColorProvider- Returns:
- whether the console associated with this color provider's process can currently accept keyboard input
-
getColor
Description copied from interface:IConsoleColorProviderReturns the color to draw output associated with the given stream.- Specified by:
getColorin interfaceIConsoleColorProvider- Parameters:
streamIdentifer- the identifier of the stream- Returns:
- Color
-
getProcess
Returns the process this color provider is providing color for, ornullif none.- Returns:
- the process this color provider is providing color for, or
nullif none
-
getConsole
Returns the console this color provider is connected to, ornullif none.- Returns:
- IConsole the console this color provider is connected to, or
nullif none
-