|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides 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 contected to the standard
input, output, and error streams associated with the process. A client may
override the default coloring by specifying a custom content providier for a
process type. A proccess type is defined via the process attribute
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.
Method Summary | |
void |
connect(IProcess process,
IConsole console)
Connects this color provider to the given process and console document. |
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. |
Method Detail |
public boolean isReadOnly()
public Color getColor(String streamIdentifer)
streamIdentifer
- public void connect(IProcess process, IConsole console)
process
- partitioner
- public void disconnect()
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |