1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378
|
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.help.ui" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="org.eclipse.help.ui" id="searchEngine" name="Search Engine"/>
</appinfo>
<documentation>
This extension point is used to plug in search participants in the federated help search. Each search engine can be configured individually. When search is initiated, each search engine is executed as a background job, and the results are collated in the help view immediately under the query.
<p>Search engines defined here will not automatically show up as federated search participants until engine product binding is established, unless <code>productId</code> attribute is left undefined. For engines that define it, only thouse bound to a particular product will show up when that product is running.
<p>
Search engines can simply compose a URL and provide only one hit containing that URL as href. Popular search engines for which API support requires license can be plugged in like this. On the other end of the spectrum, search engines can communicate with the server and receive individual hits with information like label, href, short description, score etc. Local help engine can produce hits this way.
<p>Regardless of the search mechanism, engines can provide various search scope settings using JFace preference pages. These pages are shown when 'Advanced Settings' link is followed from the Help view. In addition to root preference pages defined with the engine, additional preference sub-pages can be plugged in for more advanced settings.
<p>Scope settings are loaded and stored using <code>IPreferenceStore</code> objects. Scope settings for all engines are grouped together under a named <b>scope set</b>. When first opened, default scope set ('Default') is created, but users can define more scope sets and flip between them.
<p>Since federated search support is part of <code>org.eclipse.help.base</code> plug-in, a factory is needed to create search scope objects from the data in the preference store. Clients that plug in scope preference pages are required to plug in scope factories as well.
<p>Engines defined in this extension point do not show up in the UI by default. What is shown there is a concrete <b>instance</b>
of a search engine that can be individually modified. Products can preconfigure the help system with a number of instances of the registered engine types, possibly parametrized to perform in a desired way. In addition, users can add their own instances of the registered engines and configure them to their liking.
</documentation>
</annotation>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="engine"/>
<element ref="engineType"/>
</choice>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="engineType">
<annotation>
<appinfo>
<meta.element labelAttribute="label" icon="icon"/>
</appinfo>
<documentation>
defines a particular type of a search engine. Search engine type can be used to create concrete engine instances either by the user or pre-loaded by the product. In order to be useful, engine types must be configurable so that a number of engines can be created using a single engine type.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="description" minOccurs="0" maxOccurs="1"/>
<element ref="subpage" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
a unique name of the search engine type
</documentation>
</annotation>
</attribute>
<attribute name="label" type="string" use="required">
<annotation>
<documentation>
a translatable name of the search engine type
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
<attribute name="icon" type="string">
<annotation>
<documentation>
a 16x16 image that will be used to visually represent this engine type
</documentation>
<appinfo>
<meta.attribute kind="resource"/>
</appinfo>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
a fully qualified name of the class that implements <code>org.eclipse.help.search.ISearchEngine</code>. The class is responsible for searching based on a given query and scope.
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="org.eclipse.help.search.ISearchEngine"/>
</appinfo>
</annotation>
</attribute>
<attribute name="pageClass" type="string">
<annotation>
<documentation>
a fully qualified name of the class that extends <code>org.eclipse.help.ui.RootScopePage</code> class. This page holds the master switch for the search engine and is typically used to host widgets used to narrow down the search scope for the engine.
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="org.eclipse.help.ui.RootScopePage"/>
</appinfo>
</annotation>
</attribute>
<attribute name="scopeFactory" type="string">
<annotation>
<documentation>
a fully qualified name of the class that implements <code>org.eclipse.help.ui.ISearchScopeFactory</code>. The factory is responsible for creating ISearchScope objects from settings stored in <code>IPreferenceStore</code> class. If <code>pageClass</code> is specified, scope factory must be specified as well.
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="org.eclipse.help.ui.ISearchScopeFactory"/>
</appinfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="description" type="string">
<annotation>
<appinfo>
<meta.element translatable="true"/>
</appinfo>
<documentation>
a short description of the search engine
</documentation>
</annotation>
</element>
<element name="subpage">
<annotation>
<appinfo>
<meta.element labelAttribute="label"/>
</appinfo>
<documentation>
a child page to the root scope preference page defined in the <code>engine</code> element. If <code>pageClass</code> engine attribute is not defined, sub-pages will be ignored.
</documentation>
</annotation>
<complexType>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
a unique identifier of this page
</documentation>
</annotation>
</attribute>
<attribute name="label" type="string" use="required">
<annotation>
<documentation>
a translatable name of this page
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
<attribute name="class" type="string">
<annotation>
<documentation>
a fully qualified name of a class that implements <code>org.eclipse.help.ui.ISearchScopePage</code> interface.
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="org.eclipse.help.ui.ISearchScopePage"/>
</appinfo>
</annotation>
</attribute>
<attribute name="category" type="string" use="required">
<annotation>
<documentation>
id of the parent subpage or engine id if the parent is the root page.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="engine">
<annotation>
<documentation>
Specifies a concrete instance of a particular search engine type. Instance may be bound to the product in order to show up only when that product is active. Engine can have its own label and description. If not specified, engine type data will be used. Finally, each engine type defines a valid set of parameters that can be passed to it to configure it. Engines can specify values of these parameters.
</documentation>
</annotation>
<complexType>
<sequence>
<element ref="description" minOccurs="0" maxOccurs="1"/>
<element ref="param" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
<attribute name="productId" type="string">
<annotation>
<documentation>
used to determine which engine is appropriate for the current product (as defined by <code>org.eclipse.core.runtime.Platform.getProduct()</code>). If not specified, the engine will appear for all the products.
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.core.runtime.products/@id"/>
</appinfo>
</annotation>
</attribute>
<attribute name="engineTypeId" type="string" use="required">
<annotation>
<documentation>
the unique identifier of a valid seach engine type
</documentation>
<appinfo>
<meta.attribute kind="identifier" basedOn="org.eclipse.help.ui.searchEngine/engineType/@id"/>
</appinfo>
</annotation>
</attribute>
<attribute name="enabled" type="boolean">
<annotation>
<documentation>
if <code>true</code>, the engine will initially be enabled. Users can override this value in the UI.
</documentation>
</annotation>
</attribute>
<attribute name="label" type="string">
<annotation>
<documentation>
an optional label for this engine. If not specified, the label of the engine type will be used
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
<attribute name="id" type="string" use="required">
<annotation>
<documentation>
a unique identifier of this engine
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="param">
<annotation>
<appinfo>
<meta.element labelAttribute="name"/>
</appinfo>
<documentation>
an optional parameter that is used to configure this instance of a search engine type. Valid parameters are defined by the engine type.
</documentation>
</annotation>
<complexType>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
the name of the parameter
</documentation>
</annotation>
</attribute>
<attribute name="value" type="string" use="required">
<annotation>
<documentation>
the value of the parameter
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
3.1
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
The following is the example of the help search extension:
<p>
<pre>
<extension
point="org.eclipse.help.ui.searchEngine">
<engineType
scopeFactory="com.example.xyz.XYZScopeFactory"
label="XYZ Search"
class="com.example.xyz.search.XYZSearch"
icon="icons/etool16/xyzsearch.gif"
pageClass="com.example.xyz.search.XYZSearchPage"
id="com.example.xyz.XYZSearch">
<description>
Instances of XYZ Search search the XYZ site.
</description>
</engineType>
<engine
enabled="true"
engineTypeId="com.example.xyz.search.XYZSearch"
id="com.example.xyz.XYZSearch"
label="XYZ Search">
</engine>
<engine
enabled="true"
engineTypeId="org.eclipse.help.ui.web"
id="org.eclipse.sdk.Eclipse"
label="%search.Eclipse.label">
<description>
%search.Eclipse.desc
</description>
<param
name="url"
value="http://eclipse.org/search/search.cgi?q={expression}&amp;ul=&amp;ps=20&amp;m=all">
</param>
</engine>
</extension>
</pre>
</p>
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiInfo"/>
</appinfo>
<documentation>
Attribute <code>class</code> of the element <code>engineType</code> must provide a fully qualified name of the class that implements <code>org.eclipse.help.search.ISearchEngine</code>. Attribute <code>pageClass</code> must provide a fully qualified name of the class that extends <code>org.eclipse.help.ui.RootScopePage</code>. Attribute <code>scopeFactory</code> must provide a fully qualified name of the class that implements <code>org.eclipse.help.ui.ISearchScopeFactory</code>.
Attribute <code>class</code> of the element <code>subpage</code> must provide a fully qualified name of a class that implements <code>org.eclipse.help.ui.ISearchScopePage</code>.
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="implementation"/>
</appinfo>
<documentation>
Help UI plug-in provides search engine types for local help documentation, InfoCenter and Web search, as well as local help search engine instance. This instance does not accept parameters and has no product Id, thus will appear in every product.
<p>
Products can create concrete instances of InfoCenter and Web searches by using their engine id and the required paramaters.
<p>
InfoCenter engine type has engineId <code>org.eclipse.help.ui.infoCenter</code> and accepts one parameter <code>url</code> that points at the remote server where InfoCenter is installed. Results are shown in the same way as the local help results.
<p>
Web search engine type has engine id <code>org.eclipse.help.ui.web</code> and accepts one parameter <code>url</code> that represents a concrete search query with the actual search string replaced with a substitution symbol '{expression}', as in the following example:
<p>
<pre>
http://eclipse.org/search/search.cgi?q={expression}&ul=&ps=20&m=all
</pre>
</p>
Web search results are shown as one link that will open the web browser with the search string substituted in the <code>url</code> parameter.
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2000, 2005 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
</documentation>
</annotation>
</schema>
|