schema.searchResultSorters.exsd Maven / Gradle / Ivy
The newest version!
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.
a fully qualified identifier of the target extension point
an optional identifier of the extension instance
an optional name of the extension instance
a unique name that will be used to identify this search result sorter.
the ID of a registered search page for which the
sorter will be activated. "*" activates the sorter
for all pages.
a translatable label that will be used as the
menu item's label.
a translatable text that will be used as the menu
item's tool tip . If omitted, the menu item will
have no tool tip.
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.
a name of the class that extends <samp>org.eclipse.jface.viewers.ViewerSorter</samp>
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>
The contributed class must implement <code>org.eclipse.jface.viewers.ViewerSorter</code>
The search infrastructure provides a sorter that sorts
the matches by the resource name.
Copyright (c) 2001, 2008 IBM Corporation and others.<br>
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at <a href="https://www.eclipse.org/legal/epl-2.0">https://www.eclipse.org/legal/epl-v20.html</a>/
SPDX-License-Identifier: EPL-2.0