The Marker Support extension point defines extensions to the workbench tools that show markers such as the problems, bookmarks and tasks views.
A problem filter is a filter that can be applied to problems.
Whether or not this filter is enabled by default. If this value is not specified the value is true.
The scope of the filter. One of
ON_ANY: any item in the workbench
ON_SELECTED_ONLY: on the currently selected item
ON_SELECTED_AND_CHILDREN: on the currently selected item and it's children
ON_ANY_IN_SAME_CONTAINER: on any item with the same top level container as the selection
The description of the problem to check against. If this value is preceded with a ! the check will check that the description does not contain this string.
The severity of problem this filter is enabled for. If this value is not set then no filtering by severity will occur. Severity can be one of the following values: ERROR, WARNING or INFO.
The human readable name of the filter.
The unique id of the filter.
The selectedTypes are the ids of the marker types selected by default in this filter. If there are no selected types all marker types are enabled. All types not specified in this filter are disabled by default.
The id of a marker that is enabled by default.
The markerTypeCategory is an element for grouping marker types into a single category.
The label is the human readable name that will be presented to the user.
The markerTypeReference is a reference to a markerType defined using the extension point in org.eclipse.core.resources.
The id of the markerType
A markerGrouping is a definition of a grouping criterea for the marker views that support it (currently only the problems view). The sort order of the group is the order of specification of attribute mappings.
The label is the human readable String that will be used to create the entry in the Group By-> menu for this marker grouping.
The id is non translatable identifier for the markerGrouping. Referred to in a markerGroupingEntry.
A markerAttributeMapping maps a marker attribute to a name.
The value is the value of the attribute that is used in this mapping.
The id of the markerGroupingEntry that this attribute value maps to.
A markerGroupingEntry is the specification of one of the entries in a markerGrouping.
The id of the markerGroupingEntry. Referred to in a markerAttributeGrouping.
The markerGrouping is the id of the markerGrouping this entry will be added to.
The translable label of the entry.
The priority of the entry. Higher priorities show up higher in the list.
markerAttributeGrouping is a definition of attribute mappings for a particular markerType
The id of the markerType this grouping applies to.
The attribute is the name of the attribute to test. If it is not specified then only the defaultGroupingEntry will be checked.
The defaultGroupingEntry is the optional category for groupings that do not satisfy any of the markerAttributeMappings in the receiver. This default will be applied when the attribute value does not match a mapping or when the attribute is not available.
3.2
The following is an example of a problem filter definition in the marker support. This example only shows java warnings on the selected element and it's children and filters out those with the String NON-NLS
<p>
<pre>
<extension point="org.eclipse.ui.ide.markerSupport">
<problemFilter
name = "Warnings"
id = "org.eclipse.example.warningFilter"
enabled = "true"
scope="ON_SELECTED_AND_CHILDREN"
onDescription="!NON-NLS"
severity="WARNING"
>
<selectedType
markerId="org.eclipse.core.resources.problemmarker"/>
</problemFilter>
</extension>
</pre>
</p>
[Enter API information here.]
[Enter information about supplied implementation of this extension point.]
Copyright (c) 2005, 2006 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>