| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.search"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.search" id="searchResultSorters" name="Result Sorters"/> |
| </appInfo> |
| <documentation> |
| This extension point allows a plug-in to contribute |
| search result sorters to the search result view's Sort |
| context menu. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence> |
| <element ref="sorter" 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> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="sorter"> |
| <annotation> |
| <appInfo> |
| <meta.element labelAttribute="label" icon="icon"/> |
| </appInfo> |
| </annotation> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a unique name that will be used to identify this search result sorter. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="pageId" type="string" use="required"> |
| <annotation> |
| <documentation> |
| the ID of a registered search page for which the |
| sorter will be activated. "*" activates the sorter |
| for all pages. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="label" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a translatable label that will be used as the |
| menu item's label. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="tooltip" type="string"> |
| <annotation> |
| <documentation> |
| a translatable text that will be used as the menu |
| item's tool tip . If omitted, the menu item will |
| have no tool tip. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="icon" type="string"> |
| <annotation> |
| <documentation> |
| a relative name of the image that will be shown in |
| the context menu along with the label. If omitted, |
| the menu entry will only contain a label. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="resource"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a name of the class that extends <samp>org.eclipse.jface.viewers.ViewerSorter</samp> |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.jface.viewers.ViewerSorter"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| The following is an example of a search page extension definition: |
| <p> |
| <pre> |
| <extension point="org.eclipse.search.searchResultSorters"> |
| <sorter |
| id="org.eclipse.search.internal.ui.FileNameSorter" |
| pageId="*" |
| label="%FileNameSorter.label" |
| tooltip="%FilenNameSorter.tooltip" |
| icon="icons/full/ecl16/search_sort.gif" |
| class="org.eclipse.search.internal.ui.FileNameSorter"> |
| </sorter> |
| </extension> |
| </pre> |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| The search infrastructure provides a sorter that sorts |
| the matches by the resource name. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| <p> |
| <a href="hglegal.htm"> |
| <img SRC="ngibmcpy.gif" |
| ALT="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." |
| BORDER=0 height=14 width=324></a> |
| </p> |
| </documentation> |
| </annotation> |
| |
| </schema> |