主控台頁面參與者

org.eclipse.ui.console.consolePageParticipants

3.1

此延伸點提供了提出主控台頁面參與者的機制。主控台頁面參與者會收到頁面生命週期事件通知,例如建立、啟動、取消啟動和除去。頁面參與者也可以提供頁面配接器。

<!ELEMENT extension (consolePageParticipant)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT consolePageParticipant (enablement)>

<!ATTLIST consolePageParticipant

id    CDATA #REQUIRED

class CDATA #REQUIRED>


下列為主控台頁面參與者延伸點的範例:
   

<extension point=

"org.eclipse.ui.console.consolePageParticipant"

>

<consolePageParticipant class=

"com.example.ExamplePageParticipant"

id=

"com.example.ExamplePageParticipant"

>

<enablement>

<instanceof value=

"com.example.ExampleConsole"

/>

</enablement>

</consolePageParticipant>

</extension>

在以上的範例中,提供的主控台頁面參與者將會用於所有類型為 "com.example.ExampleConsole" 的主控台。

屬性 class 的值必須為實作介面 org.eclipse.debug.ui.console.IConsolePageParticipantDelegate 的 Java 類別之完整名稱。