| <?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="searchPages" name="Search Pages"/> | |
| </appInfo> | |
| <documentation> | |
| This extension point allows a plug-in to register search | |
| pages for specialized searches. When the search action | |
| is performed on a resource, the search infrastructure | |
| locates the most specific registered search page for it. | |
| </documentation> | |
| </annotation> | |
| <element name="extension"> | |
| <complexType> | |
| <sequence> | |
| <element ref="page" 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="page"> | |
| <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 page | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="label" type="string" use="required"> | |
| <annotation> | |
| <documentation> | |
| a translatable label that will be used in the search | |
| page tab | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="class" type="string" use="required"> | |
| <annotation> | |
| <documentation> | |
| a name of the class which implements <samp>org.eclipse.search.ui.ISearchPage</samp>. We recommend subclassing | |
| <samp>org.eclipse.jface.dialogs.DialogPage</samp>. | |
| </documentation> | |
| <appInfo> | |
| <meta.attribute kind="java" basedOn="org.eclipse.jface.dialogs.DialogPage:org.eclipse.search.ui.ISearchPage"/> | |
| </appInfo> | |
| </annotation> | |
| </attribute> | |
| <attribute name="icon" type="string"> | |
| <annotation> | |
| <documentation> | |
| a relative name of the image that will be used | |
| for all resources that match the specified extensions. | |
| If omitted, the search page's tab will only contain a label. | |
| </documentation> | |
| <appInfo> | |
| <meta.attribute kind="resource"/> | |
| </appInfo> | |
| </annotation> | |
| </attribute> | |
| <attribute name="sizeHint" type="string"> | |
| <annotation> | |
| <documentation> | |
| a hint for the initial size of the page. This is a string | |
| containing the width and height separated by | |
| comma (e.g. "50, 60"). In the case this hint is | |
| omitted the page will be no larger than the other pages. | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="tabPosition" type="string"> | |
| <annotation> | |
| <documentation> | |
| an integer defining where the page is placed in the page | |
| book. The value does not define the absolute position | |
| but the position relative to the other pages. The ordering | |
| of pages is as follows: | |
| <ol> | |
| <li> | |
| if neither page defines the tab position then they are | |
| ordered alphabetically according to their labels | |
| </li> | |
| <li> | |
| if both pages have the tab position specified then the | |
| page with the lower value comes first. If the values | |
| are equal then the pages are treated as if the values | |
| would not exist (see 1.) | |
| </li> | |
| <li> | |
| if only one page has the value specified then this | |
| page comes first | |
| </ol> | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="extensions" type="string"> | |
| <annotation> | |
| <documentation> | |
| a comma separated list with file extensions on which | |
| the search page can operate. Each extension must | |
| also include a weight (0 meaning lowest weight) | |
| which enables the search infrastructure to find the | |
| best fitting page. The weight is separated from | |
| the extension by a colon. If a search page can | |
| search all possible resources then "*" can be used. | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="searchViewHelpContextId" type="string"> | |
| <annotation> | |
| <documentation> | |
| an optional help context ID of the Search view displaying results of this page. If this attribute is missing then the default search help context ID (<samp>org.eclipse.search.search_view_context</samp>) is used. | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="showScopeSection" type="boolean"> | |
| <annotation> | |
| <documentation> | |
| If this attribute is missing or set to "false", then the scope section is not shown in the Search dialog. | |
| To see the scope section, this attribute has to be set to "true". | |
| Plug-ins which add their own Search page and want to see the scope section have to add this to their plugin.xml. | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="enabled" type="boolean"> | |
| <annotation> | |
| <documentation> | |
| If this attribute is missing or set to "false", then the page is not initially shown in the Search dialog. | |
| The page can be activated by the user via the "Customize..." button on the Search dialog. | |
| </documentation> | |
| </annotation> | |
| </attribute> | |
| <attribute name="canSearchEnclosingProjects" type="boolean"> | |
| <annotation> | |
| <documentation> | |
| If this attribute is missing or set to "false", the "Enclosing Projects" search scope is not shown in the search dialog's scope part. | |
| If the attribute "showScopeSection" is missing or set to "false", this attribute will be ignored. | |
| </documentation> | |
| </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.searchPages"> | |
| <page | |
| id="org.eclipse.search.ui.text.TextSearchPage" | |
| label="Text Search" | |
| icon="icons/full/obj16/tsearch_pref.gif" | |
| sizeHint="250,160" | |
| tabPosition="1" | |
| extensions="*:1" | |
| showScopeSection="true" | |
| class="org.eclipse.search.ui.text.TextSearchPage"> | |
| </page> | |
| </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 search page | |
| for full-text search. | |
| </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> |