Marker Handlers

Identifier:
com.ibm.xtools.emf.validation.core.markerHandlers

Since:
7.0.5

Description:
The marker handler extension point allows the contribution of an implementation which handles the creation and cleaning of markers for a given constraint and marker pair.

For constraint and marker pairs who do not have an associated marker handler, the default handling provided by the IValidationPresenter is used.

Configuration Markup:

<!ELEMENT extension (markerHandler+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED>


<!ELEMENT markerHandler EMPTY>

<!ATTLIST markerHandler

constraintId CDATA #REQUIRED

markerType   CDATA #REQUIRED

class        CDATA #REQUIRED>


Examples:


<extension
         point="com.ibm.xtools.emf.validation.core.MarkerHandlers">
      <markerHandler
            class="com.ibm.xtools.emf.validation.core.tests.markerHandlers.TestMarkerHandler"
            constraintId="com.ibm.xtools.emf.validation.core.tests.libraryBatch"
            markerType="testMarkerType">
      </markerHandler>
   </extension>


API Information:
The value of the class attribute in the markerHandler element must represent a subclass of com.ibm.xtools.emf.validation.core.presentation.markers.IValidationMarkerHandler.

The value of the constraintId attribute the markerHandler element must correspond to a constraint that was contributed through the org.eclipse.emf.validation.constraintBindings extension point.

The value of the markerType attribute the markerHandler element must correspond to a marker type that was contribute through the org.eclipse.core.resources.markers extension point.

Supplied Implementation:
The platform itself does not have any predefined markerHandlers. Particular product installs may include markerHandlers as required.


Copyright (c) 2004, 2018 Model RealTime, HCL and others. All Rights Reserved.