2
|
1 |
<?xml version='1.0' encoding='UTF-8'?>
|
|
2 |
<!-- Schema file written by PDE -->
|
|
3 |
<schema targetNamespace="com.nokia.carbide.search.system">
|
|
4 |
<annotation>
|
|
5 |
<appInfo>
|
|
6 |
<meta.schema plugin="com.nokia.carbide.search.system" id="searchPages" name="System Search Pages"/>
|
|
7 |
</appInfo>
|
|
8 |
<documentation>
|
|
9 |
This extension point allows a plug-in to register search
|
|
10 |
pages for specialized searches. When the search action
|
|
11 |
is performed on a resource, the search infrastructure
|
|
12 |
locates the most specific registered search page for it.
|
|
13 |
</documentation>
|
|
14 |
</annotation>
|
|
15 |
|
|
16 |
<element name="extension">
|
|
17 |
<complexType>
|
|
18 |
<sequence>
|
|
19 |
<element ref="page" minOccurs="0" maxOccurs="unbounded"/>
|
|
20 |
</sequence>
|
|
21 |
<attribute name="point" type="string" use="required">
|
|
22 |
<annotation>
|
|
23 |
<documentation>
|
|
24 |
a fully qualified identifier of the target extension point
|
|
25 |
</documentation>
|
|
26 |
</annotation>
|
|
27 |
</attribute>
|
|
28 |
<attribute name="id" type="string">
|
|
29 |
<annotation>
|
|
30 |
<documentation>
|
|
31 |
an optional identifier of the extension instance
|
|
32 |
</documentation>
|
|
33 |
</annotation>
|
|
34 |
</attribute>
|
|
35 |
<attribute name="name" type="string">
|
|
36 |
<annotation>
|
|
37 |
<documentation>
|
|
38 |
an optional name of the extension instance
|
|
39 |
</documentation>
|
|
40 |
<appInfo>
|
|
41 |
<meta.attribute translatable="true"/>
|
|
42 |
</appInfo>
|
|
43 |
</annotation>
|
|
44 |
</attribute>
|
|
45 |
</complexType>
|
|
46 |
</element>
|
|
47 |
|
|
48 |
<element name="page">
|
|
49 |
<annotation>
|
|
50 |
<appInfo>
|
|
51 |
<meta.element labelAttribute="label" icon="icon"/>
|
|
52 |
</appInfo>
|
|
53 |
</annotation>
|
|
54 |
<complexType>
|
|
55 |
<attribute name="id" type="string" use="required">
|
|
56 |
<annotation>
|
|
57 |
<documentation>
|
|
58 |
a unique name that will be used to identify this
|
|
59 |
search page
|
|
60 |
</documentation>
|
|
61 |
</annotation>
|
|
62 |
</attribute>
|
|
63 |
<attribute name="label" type="string" use="required">
|
|
64 |
<annotation>
|
|
65 |
<documentation>
|
|
66 |
a translatable label that will be used in the search
|
|
67 |
page tab
|
|
68 |
</documentation>
|
|
69 |
<appInfo>
|
|
70 |
<meta.attribute translatable="true"/>
|
|
71 |
</appInfo>
|
|
72 |
</annotation>
|
|
73 |
</attribute>
|
|
74 |
<attribute name="class" type="string" use="required">
|
|
75 |
<annotation>
|
|
76 |
<documentation>
|
|
77 |
a name of the class which implements <samp>com.nokia.carbide.search.system.ui.ISearchPage</samp>. We recommend subclassing
|
|
78 |
<samp>org.eclipse.jface.dialogs.DialogPage</samp>.
|
|
79 |
</documentation>
|
|
80 |
<appInfo>
|
|
81 |
<meta.attribute kind="java" basedOn="org.eclipse.jface.dialogs.DialogPage:com.nokia.carbide.search.system.ui.ISearchPage"/>
|
|
82 |
</appInfo>
|
|
83 |
</annotation>
|
|
84 |
</attribute>
|
|
85 |
<attribute name="icon" type="string">
|
|
86 |
<annotation>
|
|
87 |
<documentation>
|
|
88 |
a relative name of the image that will be used
|
|
89 |
for all resources that match the specified extensions.
|
|
90 |
If omitted, the search page's tab will only contain a label.
|
|
91 |
</documentation>
|
|
92 |
<appInfo>
|
|
93 |
<meta.attribute kind="resource"/>
|
|
94 |
</appInfo>
|
|
95 |
</annotation>
|
|
96 |
</attribute>
|
|
97 |
<attribute name="sizeHint" type="string">
|
|
98 |
<annotation>
|
|
99 |
<documentation>
|
|
100 |
a hint for the initial size of the page. This is a string
|
|
101 |
containing the width and height separated by
|
|
102 |
comma (e.g. "50, 60"). In the case this hint is
|
|
103 |
omitted the page will be no larger than the other pages.
|
|
104 |
</documentation>
|
|
105 |
</annotation>
|
|
106 |
</attribute>
|
|
107 |
<attribute name="tabPosition" type="string">
|
|
108 |
<annotation>
|
|
109 |
<documentation>
|
|
110 |
an integer defining where the page is placed in the page
|
|
111 |
book. The value does not define the absolute position
|
|
112 |
but the position relative to the other pages. The ordering
|
|
113 |
of pages is as follows:
|
|
114 |
<ol>
|
|
115 |
<li>
|
|
116 |
if neither page defines the tab position then they are
|
|
117 |
ordered alphabetically according to their labels
|
|
118 |
</li>
|
|
119 |
<li>
|
|
120 |
if both pages have the tab position specified then the
|
|
121 |
page with the lower value comes first. If the values
|
|
122 |
are equal then the pages are treated as if the values
|
|
123 |
would not exist (see 1.)
|
|
124 |
</li>
|
|
125 |
<li>
|
|
126 |
if only one page has the value specified then this
|
|
127 |
page comes first
|
|
128 |
</ol>
|
|
129 |
</documentation>
|
|
130 |
</annotation>
|
|
131 |
</attribute>
|
|
132 |
<attribute name="extensions" type="string">
|
|
133 |
<annotation>
|
|
134 |
<documentation>
|
|
135 |
a comma separated list with file extensions on which
|
|
136 |
the search page can operate. Each extension must
|
|
137 |
also include a weight (0 meaning lowest weight)
|
|
138 |
which enables the search infrastructure to find the
|
|
139 |
best fitting page. The weight is separated from
|
|
140 |
the extension by a colon. If a search page can
|
|
141 |
search all possible resources then "*" can be used.
|
|
142 |
</documentation>
|
|
143 |
</annotation>
|
|
144 |
</attribute>
|
|
145 |
<attribute name="searchViewHelpContextId" type="string">
|
|
146 |
<annotation>
|
|
147 |
<documentation>
|
|
148 |
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>com.nokia.carbide.search.system.search_view_context</samp>) is used.
|
|
149 |
</documentation>
|
|
150 |
</annotation>
|
|
151 |
</attribute>
|
|
152 |
<attribute name="showScopeSection" type="boolean">
|
|
153 |
<annotation>
|
|
154 |
<documentation>
|
|
155 |
If this attribute is missing or set to "false", then the scope section is not shown in the Search dialog.
|
|
156 |
To see the scope section, this attribute has to be set to "true".
|
|
157 |
Plug-ins which add their own Search page and want to see the scope section have to add this to their plugin.xml.
|
|
158 |
</documentation>
|
|
159 |
</annotation>
|
|
160 |
</attribute>
|
|
161 |
<attribute name="enabled" type="boolean">
|
|
162 |
<annotation>
|
|
163 |
<documentation>
|
|
164 |
If this attribute is missing or set to "false", then the page is not initially shown in the Search dialog.
|
|
165 |
The page can be activated by the user via the "Customize..." button on the Search dialog.
|
|
166 |
</documentation>
|
|
167 |
</annotation>
|
|
168 |
</attribute>
|
|
169 |
<attribute name="canSearchEnclosingProjects" type="boolean">
|
|
170 |
<annotation>
|
|
171 |
<documentation>
|
|
172 |
If this attribute is missing or set to "false", the "Enclosing Projects" search scope is not shown in the search dialog's scope part.
|
|
173 |
If the attribute "showScopeSection" is missing or set to "false", this attribute will be ignored.
|
|
174 |
</documentation>
|
|
175 |
</annotation>
|
|
176 |
</attribute>
|
|
177 |
</complexType>
|
|
178 |
</element>
|
|
179 |
|
|
180 |
<annotation>
|
|
181 |
<appInfo>
|
|
182 |
<meta.section type="examples"/>
|
|
183 |
</appInfo>
|
|
184 |
<documentation>
|
|
185 |
The following is an example of a search page extension
|
|
186 |
definition:
|
|
187 |
|
|
188 |
<p>
|
|
189 |
<pre>
|
|
190 |
<extension point="com.nokia.carbide.search.system.searchPages">
|
|
191 |
<page
|
|
192 |
id="com.nokia.carbide.search.system.ui.text.TextSearchPage"
|
|
193 |
label="Text Search"
|
|
194 |
icon="icons/full/obj16/tsearch_pref.gif"
|
|
195 |
sizeHint="250,160"
|
|
196 |
tabPosition="1"
|
|
197 |
extensions="*:1"
|
|
198 |
showScopeSection="true"
|
|
199 |
class="com.nokia.carbide.search.system.ui.text.TextSearchPage">
|
|
200 |
</page>
|
|
201 |
</extension>
|
|
202 |
</pre>
|
|
203 |
</p>
|
|
204 |
</documentation>
|
|
205 |
</annotation>
|
|
206 |
|
|
207 |
<annotation>
|
|
208 |
<appInfo>
|
|
209 |
<meta.section type="apiInfo"/>
|
|
210 |
</appInfo>
|
|
211 |
<documentation>
|
|
212 |
The contributed class must implement <code>com.nokia.carbide.search.system.ui.ISearchPage</code>
|
|
213 |
</documentation>
|
|
214 |
</annotation>
|
|
215 |
|
|
216 |
<annotation>
|
|
217 |
<appInfo>
|
|
218 |
<meta.section type="implementation"/>
|
|
219 |
</appInfo>
|
|
220 |
<documentation>
|
|
221 |
The search infrastructure provides a search page
|
|
222 |
for full-text search.
|
|
223 |
</documentation>
|
|
224 |
</annotation>
|
|
225 |
|
|
226 |
<annotation>
|
|
227 |
<appInfo>
|
|
228 |
<meta.section type="copyright"/>
|
|
229 |
</appInfo>
|
|
230 |
<documentation>
|
|
231 |
Copyright (c) 2001, 2004 IBM Corporation and others.<br>
|
|
232 |
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 <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>
|
|
233 |
</documentation>
|
|
234 |
</annotation>
|
|
235 |
|
|
236 |
</schema>
|