blob: b94767c44c2bc620313d9ce65478b14816beb433 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.ui.ide">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.ui.ide" id="markerSupport" name="Marker Support"/>
</appInfo>
<documentation>
The Marker Support extension point defines extensions to the workbench tools that show markers such as the problems, bookmarks and tasks views.
</documentation>
</annotation>
<element name="extension">
<complexType>
<sequence>
<element ref="problemFilter" minOccurs="0" maxOccurs="unbounded"/>
<element ref="markerTypeCategory" minOccurs="0" maxOccurs="unbounded"/>
<element ref="markerGrouping" minOccurs="0" maxOccurs="unbounded"/>
<element ref="markerGroupingEntry" minOccurs="0" maxOccurs="unbounded"/>
<element ref="markerAttributeGrouping" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="problemFilter">
<annotation>
<documentation>
A problem filter is a filter that can be applied to problems.
</documentation>
</annotation>
<complexType>
<sequence minOccurs="0" maxOccurs="unbounded">
<element ref="selectedType"/>
</sequence>
<attribute name="enabled" type="boolean">
<annotation>
<documentation>
Whether or not this filter is enabled by default. If this value is not specified the value is true.
</documentation>
</annotation>
</attribute>
<attribute name="scope">
<annotation>
<documentation>
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&apos;s children
ON_ANY_IN_SAME_CONTAINER: on any item with the same top level container as the selection
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="ON_ANY">
</enumeration>
<enumeration value="ON_SELECTED_ONLY">
</enumeration>
<enumeration value="ON_SELECTED_AND_CHILDREN">
</enumeration>
<enumeration value="ON_ANY_IN_SAME_CONTAINER">
</enumeration>
</restriction>
</simpleType>
</attribute>
<attribute name="onDescription" type="string">
<annotation>
<documentation>
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.
</documentation>
</annotation>
</attribute>
<attribute name="severity">
<annotation>
<documentation>
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.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="ERROR">
</enumeration>
<enumeration value="WARNING">
</enumeration>
<enumeration value="INFO">
</enumeration>
</restriction>
</simpleType>
</attribute>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
The human readable name of the filter.
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
The unique id of the filter.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="selectedType">
<annotation>
<documentation>
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.
</documentation>
</annotation>
<complexType>
<attribute name="markerId" type="string">
<annotation>
<documentation>
The id of a marker that is enabled by default.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="markerTypeCategory">
<annotation>
<documentation>
The markerTypeCategory is an element for grouping marker types into a single category.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="markerTypeReference"/>
</sequence>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
The label is the human readable name that will be presented to the user.
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="markerTypeReference">
<annotation>
<documentation>
The markerTypeReference is a reference to a markerType defined using the extension point in org.eclipse.core.resources.
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
The id of the markerType
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="markerGrouping">
<annotation>
<appInfo>
<meta.element labelAttribute="label"/>
</appInfo>
<documentation>
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.
</documentation>
</annotation>
<complexType>
<attribute name="label" type="string" use="required">
<annotation>
<documentation>
The label is the human readable String that will be used to create the entry in the Group By-&gt; menu for this marker grouping.
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
The id is non translatable identifier for the markerGrouping. Referred to in a markerGroupingEntry.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="markerAttributeMapping">
<annotation>
<documentation>
A markerAttributeMapping maps a marker attribute to a name.
</documentation>
</annotation>
<complexType>
<attribute name="value" type="string" use="required">
<annotation>
<documentation>
The value is the value of the attribute that is used in this mapping.
</documentation>
</annotation>
</attribute>
<attribute name="markerGroupingEntry" type="string" use="required">
<annotation>
<documentation>
The id of the markerGroupingEntry that this attribute value maps to.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="markerGroupingEntry">
<annotation>
<appInfo>
<meta.element labelAttribute="label"/>
</appInfo>
<documentation>
A markerGroupingEntry is the specification of one of the entries in a markerGrouping.
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
The id of the markerGroupingEntry. Referred to in a markerAttributeGrouping.
</documentation>
</annotation>
</attribute>
<attribute name="markerGrouping" type="string" use="required">
<annotation>
<documentation>
The markerGrouping is the id of the markerGrouping this entry will be added to.
</documentation>
</annotation>
</attribute>
<attribute name="label" type="string" use="required">
<annotation>
<documentation>
The translable label of the entry.
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
<attribute name="priority" type="string" use="required">
<annotation>
<documentation>
The priority of the entry. Higher priorities show up higher in the list.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="markerAttributeGrouping">
<annotation>
<documentation>
markerAttributeGrouping is a definition of attribute mappings for a particular markerType
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="markerAttributeMapping" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="markerType" type="string" use="required">
<annotation>
<documentation>
The id of the markerType this grouping applies to.
</documentation>
</annotation>
</attribute>
<attribute name="attribute" type="string">
<annotation>
<documentation>
The attribute is the name of the attribute to test. If it is not specified then only the defaultGroupingEntry will be checked.
</documentation>
</annotation>
</attribute>
<attribute name="defaultGroupingEntry" type="string">
<annotation>
<documentation>
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.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="since"/>
</appInfo>
<documentation>
3.2
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
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&apos;s children and filters out those with the String NON-NLS
&lt;p&gt;
&lt;pre&gt;
&lt;extension point=&quot;org.eclipse.ui.ide.markerSupport&quot;&gt;
&lt;problemFilter
name = &quot;Warnings&quot;
id = &quot;org.eclipse.example.warningFilter&quot;
enabled = &quot;true&quot;
scope=&quot;ON_SELECTED_AND_CHILDREN&quot;
onDescription=&quot;!NON-NLS&quot;
severity=&quot;WARNING&quot;
&gt;
&lt;selectedType
markerId=&quot;org.eclipse.core.resources.problemmarker&quot;/&gt;
&lt;/problemFilter&gt;
&lt;/extension&gt;
&lt;/pre&gt;
&lt;/p&gt;
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="apiInfo"/>
</appInfo>
<documentation>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="implementation"/>
</appInfo>
<documentation>
The severity markerGrouping is provided in the org.eclipse.ui.ide plug-in by default.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2005, 2006 IBM Corporation and others.&lt;br&gt;
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 &lt;a
href=&quot;http://www.eclipse.org/legal/epl-v10.html&quot;&gt;http://www.eclipse.org/legal/epl-v10.html&lt;/a&gt;
</documentation>
</annotation>
</schema>