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