![JAR search and dependency download from the Maven repository](/logo.png)
schema.statusHandlers.exsd Maven / Gradle / Ivy
The newest version!
<p>
This extension point is used to register implementations of status handlers in the workbench. A handler can be associated with a product and this association is also contributed via this extension point.
</p>
<p>
Status handlers are part of the status handling facility. The facility is responsible for handling errors and other important issues in Eclipse based applications. The handlers are responsible for presenting this errors by logging or showing error dialogs.
</p>
<p>
If there is no status handler associated with a product, the status handling facility uses the application handler defined in a workbench advisor.
</p>
This element is used to define a status handler.
<p>
A unique identifier for this error handler. The id is used for setting default
error handler in a product.
If an error handler is to be the default one its id has to be set
in a product preference file in org.eclipse.ui/ERROR_HANDLER_ID property.
The name of the preference file is set in product extension
"preferenceCustomization" property.
</p>
<p>
A fully qualified name of a class which extends <code>org.eclipse.ui.statushandlers.AbstractStatusHandler</code>.
</p>
<p>
This element defines parameters for instances of specified status handler class.
Instances of specified status handler class should understand this parameter.
</p>
<p>
Handling policies can use handler parameters. For example default policy
use handlers "prefix" parameter. The default policy looks for the most specific
handler for given status checking status pluginId against these prefixes.
</p>
The name of a parameter.
The value of a parameter.
<p>
Specifies a binding between a product and a status handler.
These bindings determine which handler is appropriate for the current product (as defined by <code>org.eclipse.core.runtime.Platform.getProduct()</code>).
</p>
The unique id of a product.
The unique id of a status handler.
3.3
<p>
The following is an example of the definition for handler with prefix parameter.
</p>
<p>
<pre>
<extension
point="org.eclipse.ui.statusHandlers">
<statusHandler
class="org.eclipse.ui.statushanders.SampleStatusHandler"
id="sampleStatusHandler">
<parameter
name="prefix"
value="org.eclipse.ui.ide">
</parameter>
</statusHandler>
</extension>
</pre>
</p>
<p>
The following is an example of the definition for default (product) handler. The handler defined in the example will be default for product with id "productId".
</p>
<p>
<pre>
<extension
point="org.eclipse.ui.statusHandlers">
<statusHandler
class="org.eclipse.ui.statushandlers.SampleStatusHandler"
id="sampleStatusHandler">
</statusHandler>
<statusHandlerProductBinding
handlerId="sampleStatusHandler"
productId="productId">
</statusHandlerProductBinding>
</extension>
</pre>
</p>
<p>
Of course we can define only the binding (for instance in a product plugin).
The handler can be defined in other plugin.
</p>
<p>
<pre>
<extension
point="org.eclipse.ui.statusHandlers">
<statusHandlerProductBinding
handlerId="sampleStatusHandler"
productId="productId">
</statusHandlerProductBinding>
</extension>
</pre>
</p>
</p>
The value of the <code>class</code> attribute in <code>statusHandler</code> element must be the fully qualified name of a class that extends <code>org.eclipse.ui.statushandlers.AbstractStatusHandler</code>.
</p>
<p>
The <code>parameter</code> elements in <code>statusHandler</code> element adds parameters which can be used during handling in the status handler defined in <code>class</code> attribute.
</p>
<p>
The value of the <code>productId</code> attribute in <code>statusHandlerProductBinding</code> is full name of the product to which the handler with id defined in <code>handlerId</code> attribute in <code>statusHandlerProductBinding</code> will be associated.
</p>
<p>
The platform supplies basic implementation of <code>org.eclipse.ui.statushandlers.AbstractStatusHandler</code>.
It is <code>org.eclipse.ui.statushandlers.WorkbenchErrorHandler</code> which is the default workbench status handler.
</p>
Copyright (c) 2006, 2007 IBM Corporation and others.<br>
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 <a
href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy