blob: 9f888a727d6939f1e095e95ef34fddcf0b7c4e56 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.jdt.ui">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.jdt.ui" id="javaElementFilters" name="Java Element Filter Extensions"/>
</appInfo>
<documentation>
This extension point is used to extend Java UI views with filters.
</documentation>
</annotation>
<element name="extension">
<complexType>
<sequence>
<element ref="filter" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
a fully qualified identifier of the target extension point
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
an optional identifier of the extension instance
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
an optional name of the extension instance
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="filter">
<annotation>
<appInfo>
<meta.element labelAttribute="name"/>
</appInfo>
</annotation>
<complexType>
<attribute name="id" type="string">
<annotation>
<documentation>
a unique id that will be used to identify this filter.
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
a unique name that allows to identify this filter in the UI. This attribute should be a translated string. Though this attribute is not required for pattern filters (i.e. those using the &lt;samp&gt;pattern&lt;/samp&gt; attribute) we suggest to provide a name anyway, otherwise the pattern string itself would be used to represent the filter in the UI.
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
<attribute name="description" type="string">
<annotation>
<documentation>
a short description for this filter. This attribute should be a translated string.
</documentation>
<appInfo>
<meta.attribute translatable="true"/>
</appInfo>
</annotation>
</attribute>
<attribute name="targetId" type="string">
<annotation>
<documentation>
the id of the target where this filter is contributed. If this attribute is missing, then the filter will
be contributed to all views which use the &lt;samp&gt;org.eclipse.jdt.ui.actions.customFiltersActionGroup&lt;/samp&gt;. This
replaces the deprecated attributed &quot;viewId&quot;.
</documentation>
</annotation>
</attribute>
<attribute name="enabled" type="boolean">
<annotation>
<documentation>
the filter will be enabled if this attribute is present and its value is &quot;true&quot;. Most likely the user will be able to override this setting in the UI.
</documentation>
</annotation>
</attribute>
<attribute name="pattern" type="string">
<annotation>
<documentation>
elements whose name matches this pattern will be hidden. This attribute is here for backward compatibility and should no longer be used. All views that allow to plug-in a filter also allow to add pattern filters directly via UI.
</documentation>
</annotation>
</attribute>
<attribute name="class" type="string">
<annotation>
<documentation>
the name of the class used to filter the view. The class must extend &lt;samp&gt;org.eclipse.jface.viewers.ViewerFilter&lt;/samp&gt;. If this attribute is here
then the pattern attribute must not provided.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn="org.eclipse.jface.viewers.ViewerFilter"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
The following is an example of Java element filter definition. It filters out inner classes and is initially selected.
&lt;p&gt;
&lt;pre&gt;
&lt;extension point=&quot;org.eclipse.jdt.ui.javaElementFilters&quot;&gt;
&lt;filter
id=&quot;org.eclipse.jdt.ui.PackageExplorer.LibraryFilter&quot;
name=&quot;%HideReferencedLibraries.label&quot;
description=&quot;%HideReferencedLibraries.description&quot;
targetId=&quot;org.eclipse.jdt.ui.PackageExplorer&quot;
class=&quot;org.eclipse.jdt.internal.ui.filters.LibraryFilter&quot;
enabled=&quot;false&quot;&gt;
&lt;/filter&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>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2001, 2004 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>