Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

Result Sorters

This extension point is deprecated

Identifier:
org.eclipse.search.searchResultSorters

Description:
This extension point allows a plug-in to contribute search result sorters to the (old) search result view's Sort context menu. This extension point is deprecated since 3.0. The search result views are now contributed by clients and sorters are directly managed by these pages.

Configuration Markup:

<!ELEMENT extension ( sorter*)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>

  • point - a fully qualified identifier of the target extension point
  • id - an optional identifier of the extension instance
  • name - an optional name of the extension instance

<!ELEMENT sorter EMPTY>

<!ATTLIST sorter

id      CDATA #REQUIRED

pageId  IDREF #REQUIRED

label   CDATA #REQUIRED

tooltip CDATA #IMPLIED

icon    CDATA #IMPLIED

class   CDATA #REQUIRED

>

  • id - a unique name that will be used to identify this search result sorter.
  • pageId - the ID of a registered search page for which the sorter will be activated. "*" activates the sorter for all pages.
  • label - a translatable label that will be used as the menu item's label.
  • tooltip - a translatable text that will be used as the menu item's tool tip . If omitted, the menu item will have no tool tip.
  • icon - 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.
  • class - a name of the class that extends org.eclipse.jface.viewers.ViewerSorter

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=
"%FilenNameSorter.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 (c) 2001, 2008 IBM Corporation and others.
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 https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire