Status Handlers

org.eclipse.debug.core.statusHandlers

This extension point provides a mechanism for separating the generation and resolution of an error. The interaction between the source of the error and the resolution is client-defined. It is a client responsibility to look up and delegate to status handlers when an error condition occurs.

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


The following is an example of a status handler extension point:

 

<extension point=

"org.eclipse.debug.core.statusHandlers"

>

<statusHandler id=

"com.example.ExampleIdentifier"

class=

"com.example.ExampleStatusHandler"

plugin=

"com.example.ExamplePluginId"

code=

"123"

>

</statusHandler>

</extension>

In the example above, the specified status handler will be registered for to handle status objects with a plug-in identifier of com.example.ExamplePluginId and a status code of 123.

Value of the attribute class must be a fully qualified name of a Java class that implements the interface org.eclipse.debug.core.IStatusHandler.