- All Known Implementing Classes:
public interface IConsoleColorProviderProvides coloring for a console document. When a process is added to a registered launch the debug plug-in creates a console document for the process. By default, a document is created which is connected to the standard input, output, and error streams associated with the process. A client may override the default coloring by specifying a custom content provider for a process type. A process type is defined via the process attribute
A console color provider extension is defined in
plugin.xml. Following is an example definition of a console color provider extension.
<extension point="org.eclipse.debug.ui.consoleColorProviders"> <consoleColorProvider id="com.example.ExampleConsoleColorProvider" class="com.example.ExampleConsoleColorProviderClass" processType="ExampleProcessType"> </consoleColorProvider> </extension>The attributes are specified as follows:
idspecifies a unique identifier for this color provider.
classspecifies a fully qualified name of a Java class that implements
processTypespecifies the identifier of the process type this content provider is associated with (which corresponds to the
ATTR_PROCESS_TYPEattribute on a process).
Clients may implement this interface.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
connect(IProcess process, IConsole console)Connects this color provider to the given process and console.
disconnect()Disconnects this color provider.
getColor(String streamIdentifer)Returns the color to draw output associated with the given stream.
isReadOnly()Returns whether the console associated with this color provider's process can currently accept keyboard input.
boolean isReadOnly()Returns 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.
- whether the console associated with this color provider's process can currently accept keyboard input
getColorReturns the color to draw output associated with the given stream.
streamIdentifer- the identifier of the stream
connectConnects this color provider to the given process and console. This color provider should connect its streams to the given console document.
process- the process to connect this color provider to
console- the console to connect this color provider to
void disconnect()Disconnects this color provider.