控制台页面参与者

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 类的标准名称。