Result Sorters

Identifier: org.eclipse.search.searchResultSorters

Description: This extension point allows a plug-in to contribute search result sorters to the search result view's Sort context menu.

Configuration Markup:

   <!ELEMENT sorter EMPTY>
   <!ATTLIST sorter
      id          CDATA #REQUIRED
      pageId      CDATA #REQUIRED
      label       CDATA #REQUIRED
      tooltip     CDATA #IMPLIED
      icon        CDATA #IMPLIED
      class       CDATA #REQUIRED
   >

Examples:

The following is an example of a search page extension definition:

   <extension point="org.eclipse.search.searchResultSorters">
    <sorter
        id="org.eclipse.search.internal.ui.FileNameSorter"
        pageId="*"
        label="%FileNameSorter.label"
        tooltip="%FileNameSorter.tooltip"
        icon="icons/full/ecl16/search_sort.gif"
        class="org.eclipse.search.internal.ui.FileNameSorter">
    </sorter>
   </extension>

Supplied Implementation: The search infrastructure provides a sorter that sorts the matches by the resource name.


 Copyright IBM Corporation 2000, 2002. All Rights Reserved.