<!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>
在上面範例中,所提供的顏色提供者將用於處理 "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, 2003 IBM Corporation and others.
All rights reserved.
本程式和隨附的資料可以根據隨附這項分送且可在 http://www.eclipse.org/legal/cpl-v10.html 中取得之 Common Public License v1.0 之條款來使用