主控台顏色提供者

識別碼:org.eclipse.debug.ui.consoleColorProviders

從:2.1

說明:這個延伸點提供一個機制,可用來提供程序的主控台文件著色設計。顏色提供者將用來把主控台中的輸出著色。

配置標記:

   <!ELEMENT extension EMPTY>

   <!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
   >

範例:以下是主控台顏色提供者延伸點的範例:

<extension point="org.eclipse.debug.ui.consoleColorProviders">
  <consoleColorProvider 
     id="com.example.ExampleConsoleColorProvider"
     class="com.example.ExampleConsoleColorProvider"
     processType="ExampleProcessType">
  </consoleColorProvider>
   </extension> 
在上面範例中,所提供的顏色提供者將用於處理 "ExampleProcessType" 類型,這個類型對應於處理屬性 IProcess.ATTR_PROCESS_TYPE。 程序類型是由用戶端定義的,而且是由建立程序的用戶端設定的。

API 資訊:class 屬性值必須是實作 org.eclipse.debug.ui.console.IConsoleColorProvider 介面之 Java 類別的完整名稱。

Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved.