<!ELEMENT extension (statusHandler*)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT statusHandler EMPTY>
<!ATTLIST statusHandler
id CDATA #REQUIRED
class CDATA #REQUIRED
plugin CDATA #REQUIRED
code CDATA #REQUIRED>
IStatusHandler
的 Java 类的标准名称。IStatus.getPlugin()
)。
在上面的示例中,将注册指定的状态处理程序以处理插件标识为 com.example.ExamplePluginId 且状态码为 123 的状态对象。<extension point=
"org.eclipse.debug.core.statusHandlers"
>
<statusHandler id=
"com.example.ExampleIdentifier"
class=
"com.example.ExampleStatusHandler"
plugin=
"com.example.ExamplePluginId"
code=
"123"
>
</statusHandler>
</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