Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 0aaffba6b707fe8079a836e9dd92d076a1f74c53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>README Status Handlers Extension Point</title>
</head>

<body link="#0000FF" vlink="#800080">

<h1 align="center">Status Handlers</h1>

<p><b><i>Identifier: </i></b>org.eclipse.debug.core.statusHandlers</p>

<p><b><i>Description: </i></b>This extension point provides a generic
 mechanism for separating the generation and resolutoin of an error.
 The interaction between the source of the error, and the resolution
 is client defined. It is a client reponsibility to lookup and delegate
 to status handlers when an error condition occurrs.</p>

<p><b><i>Configuration Markup:</i></b> </p>

<pre>
<tt>&nbsp;&nbsp; &lt;!ELEMENT statusHandler</tt>&gt;
<tt>&nbsp;&nbsp; &lt;!ATTLIST statusHandler</tt> 
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; class&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; plugin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA #REQUIRED</tt>
<br><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; code&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; CDATA #REQUIRED</tt>&gt;
</pre>

<ul>
  <li><code>id</code> specifies a unique identifier for this status handler.</li>
  <li><code>class</code> specifies the fully qualified name of the java class
    that implements <code>IStatusHandler</code>.</li>
  <li><code>plugin</code> plug-in identifier that corresponds to the
    plug-in of the status this handler is registered for (i.e.
    <code>IStatus.getPlugin()</code>).</li>
  <li><code>code</code> specifies the status code this handler
    is registered for.</li>
</ul>

<p><b><i>Examples:</i></b> </p>

<p>The following is an example of a status handler extension point: </p>

<pre>
  &lt;extension point="org.eclipse.debug.core.statusHandlers"&gt;
    &lt;statusHandler 
       id="com.example.ExampleIdentifier"
       class="com.example.ExampleStatusHandler"
       plugin="com.example.ExamplePluginId"
       code="123"
    &lt;/statusHandler&gt;
  &lt;/extension&gt;
</pre>

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

<p><b><i>API Information: </i></b>Value of the attribute <b>class</b> must be a fully
qualified name of a Java class that implements the interface <b>
org.eclipse.debug.core.IStatusHandler</b>.
</p>

<p><a href="hglegal.htm"><img src="ngibmcpy.gif" alt="Copyright IBM Corp. 2000, 2001. All Rights Reserved."
border="0" width="195" height="12"></a></p>
</body>
</html>

Back to the top