public interface IConsoleColorProvider
IProcess. ATTR_PROCESS_TYPE
.
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:
id
specifies a unique identifier for this color provider.class
specifies a fully qualified name of a Java class
that implements IConsoleColorProvider
.processType
specifies the identifier of the process type
this content provider is associated with (which corresponds to the
ATTR_PROCESS_TYPE
attribute on a process).Clients may implement this interface.
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.
|
boolean |
isReadOnly()
Returns whether the console associated with this color provider's
process can currently accept keyboard input.
|
boolean isReadOnly()
Color getColor(String streamIdentifer)
streamIdentifer
- the identifier of the streamvoid connect(IProcess process, IConsole console)
process
- the process to connect this color provider toconsole
- the console to connect this color provider tovoid disconnect()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.