<!ELEMENT extension (consoleColorProvider*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT consoleColorProvider EMPTY>
<!ATTLIST consoleColorProvider
id CDATA #REQUIRED
class CDATA #REQUIRED
processType CDATA #REQUIRED>
IConsoleColorProvider
的 Java 类的标准名称。IProcess.ATTR_PROCESS_TYPE
相对应。在上面的示例中,添加的颜色提供程序将用于类型为“ExampleProcessType”的进程,该类型与进程属性 IProcess.ATTR_PROCESS_TYPE 相对应。进程类型是客户机定义的,并由创建进程的客户机设置。<extension point=
"org.eclipse.debug.ui.consoleColorProviders"
>
<consoleColorProvider id=
"com.example.ExampleConsoleColorProvider"
class=
"com.example.ExampleConsoleColorProvider"
processType=
"ExampleProcessType"
>
</consoleColorProvider>
</extension>
Copyright (c) 2000, 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License v1.0 which
accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html