Statistics
| Revision:

root / tmp / org.txm.tigersearch.rcp / plugin.xml @ 2212

History | View | Annotate | Download (9.5 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4

    
5
   <extension
6
         point="org.eclipse.ui.commands">
7
      <category
8
            description="%category.description"
9
            id="TIGERSearch4TXM.commands.category"
10
            name="%category.name">
11
      </category>
12
      <command
13
            categoryId="TIGERSearch4TXM.commands.category"
14
            defaultHandler="org.txm.tigersearch.commands.ComputeTIGERSearch"
15
            id="org.txm.tigersearch.commands.ComputeTIGERSearch"
16
            name="%command.name"
17
            returnTypeId="org.txm.function.tigersearch.TIGERSearch">
18
      </command>
19
      <command
20
            categoryId="TIGERSearch4TXM.commands.category"
21
            defaultHandler="org.txm.tigersearch.commands.ComputeRecette1"
22
            id="org.txm.tigersearch.commands.ComputeRecette1"
23
            name="%command.name.0">
24
      </command>
25
      <command
26
            categoryId="TIGERSearch4TXM.commands.category"
27
            defaultHandler="org.txm.tigersearch.commands.ComputeRecette2"
28
            id="org.txm.tigersearch.commands.ComputeRecette2"
29
            name="%command.name.1">
30
      </command>
31
      <command
32
            categoryId="TIGERSearch4TXM.commands.category"
33
            defaultHandler="org.txm.tigersearch.commands.ImportTIGERAnnotations"
34
            id="org.txm.tigersearch.commands.ImportTIGERAnnotations"
35
            name="Import TIGERSearch Annotations...">
36
      </command>
37
   </extension>
38
   <extension
39
         point="org.eclipse.core.expressions.propertyTesters">
40
      <propertyTester
41
            class="org.txm.tigersearch.rcp.tester.TIGERSearchTester"
42
            id="org.txm.rcp.testers.TIGERSearchTester"
43
            namespace="org.txm.rcp.testers"
44
            properties="TIGERSearchReady"
45
            type="java.lang.Object">
46
      </propertyTester>
47
   </extension>
48
   <extension
49
         point="org.eclipse.ui.menus">
50
      <menuContribution
51
            locationURI="menu:menu.tools?after=menu.tools.separator.misc">
52
         <command
53
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
54
               icon="icons/functions/TS.png"
55
               label="%command.label"
56
               style="push">
57
            <visibleWhen
58
                  checkEnabled="false">
59
               <or>
60
                  <test
61
                        forcePluginActivation="true"
62
                        property="org.txm.rcp.testers.TIGERSearchReady"
63
                        value="TIGERSearchReady">
64
                  </test>
65
               </or>
66
            </visibleWhen>
67
         </command>
68
      </menuContribution>
69
      <menuContribution
70
            locationURI="menu:menu.help.plugins">
71
         <command
72
               commandId="org.txm.rcp.commands.OpenBrowser"
73
               label="%command.label.0"
74
               style="push">
75
            <parameter
76
                  name="org.txm.rcp.commands.commandParameter2"
77
                  value="https://groupes.renater.fr/wiki/txm-users/public/extensions_alpha#tigersearch">
78
            </parameter>
79
         </command>
80
      </menuContribution>
81
      <menuContribution
82
            locationURI="menu:menu.recettes">
83
         <command
84
               commandId="org.txm.tigersearch.commands.ComputeRecette1"
85
               icon="icons/functions/TSIndex.png"
86
               label="%command.label.1"
87
               style="push">
88
            <visibleWhen
89
                  checkEnabled="false">
90
               <or>
91
                  <reference
92
                        definitionId="OneCorpusSelected">
93
                  </reference>
94
               </or>
95
            </visibleWhen>
96
         </command>
97
         <command
98
               commandId="org.txm.tigersearch.commands.ComputeRecette2"
99
               icon="icons/functions/TSIndex.png"
100
               label="%command.label.2"
101
               style="push">
102
            <visibleWhen
103
                  checkEnabled="false">
104
               <and>
105
                  <count
106
                        value="2">
107
                  </count>
108
                  <iterate>
109
                     <instanceof
110
                           value="org.txm.searchengine.cqp.corpus.CQPCorpus">
111
                     </instanceof>
112
                  </iterate>
113
               </and>
114
            </visibleWhen>
115
         </command>
116
      </menuContribution>
117
      <menuContribution
118
            allPopups="false"
119
            locationURI="popup:org.txm.rcp.views.CorporaView">
120
         <command
121
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
122
               icon="icons/functions/TS.png"
123
               label="%command.label.3"
124
               style="push">
125
            <visibleWhen
126
                  checkEnabled="false">
127
               <or>
128
                  <test
129
                        forcePluginActivation="true"
130
                        property="org.txm.rcp.testers.TIGERSearchReady"
131
                        value="TIGERSearchReady">
132
                  </test>
133
               </or>
134
            </visibleWhen>
135
         </command>
136
      </menuContribution>
137
      <menuContribution
138
            allPopups="false"
139
            locationURI="toolbar:org.txm.rcp.toolbartools">
140
         <command
141
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
142
               icon="icons/functions/TS.png"
143
               label="%command.label.4"
144
               style="push">
145
            <visibleWhen
146
                  checkEnabled="false">
147
               <or>
148
                  <test
149
                        forcePluginActivation="true"
150
                        property="org.txm.rcp.testers.TIGERSearchReady"
151
                        value="TIGERSearchReady">
152
                  </test>
153
               </or>
154
            </visibleWhen>
155
         </command>
156
      </menuContribution>
157
      <menuContribution
158
            locationURI="menu:menu.file.import?before=menu.file.import.separator.software">
159
         <command
160
               commandId="org.txm.rcp.handlers.scripts.ExecuteImportScript"
161
               icon="icons/functions/TS.png"
162
               label="%command.label.5"
163
               style="push">
164
            <parameter
165
                  name="org.txm.rcp.commands.commandParameter3"
166
                  value="tigersearch/tigersearchLoader.groovy">
167
            </parameter>
168
         </command>
169
      </menuContribution>
170
      <menuContribution
171
            locationURI="menu:menu.corpus?after=menu.corpus.build">
172
         <command
173
               commandId="org.txm.tigersearch.commands.ImportTIGERAnnotations"
174
               icon="icons/functions/TSplus.png"
175
               style="push">
176
            <visibleWhen
177
                  checkEnabled="false">
178
               <or>
179
                  <test
180
                        forcePluginActivation="true"
181
                        property="org.txm.rcp.testers.TIGERSearchReady"
182
                        value="TIGERSearchReady">
183
                  </test>
184
                  <reference
185
                        definitionId="OneMainCorpusSelected">
186
                  </reference>
187
               </or>
188
            </visibleWhen>
189
         </command>
190
      </menuContribution>
191
   </extension>
192
   <extension
193
         point="org.eclipse.ui.editors">
194
      <editor
195
            class="org.txm.tigersearch.editors.TIGERSearchEditor"
196
            default="false"
197
            icon="icons/functions/TS.png"
198
            id="org.txm.tigersearch.editors.TIGERSearchEditor"
199
            name="%editor.name">
200
      </editor>
201
      <editor
202
            class="org.txm.tigersearch.editors.TSIndexEditor"
203
            default="false"
204
            icon="icons/functions/TSIndex.png"
205
            id="org.txm.tigersearch.editors.TSIndexEditor"
206
            name="%editor.name.0">
207
      </editor>
208
   </extension>
209
   <extension
210
         point="org.txm.PostInstallationStep">
211
   </extension>
212
   <extension
213
         point="org.txm.PostTXMHOMEInstallationStep">
214
      <PostTXMHOMEInstallationStep
215
            class="org.txm.tigersearch.rcp.InstallGroovyTIGERFiles"
216
            description="Install TIGER Groovy Files"
217
            name="Install TIGER Groovy Files">
218
      </PostTXMHOMEInstallationStep>
219
   </extension>
220
   <extension
221
         point="org.txm.searchengine.core.SearchEngine">
222
      <SearchEngine
223
            class="org.txm.searchengine.ts.TIGERSearchEngine">
224
      </SearchEngine>
225
   </extension>
226
   <extension
227
         point="org.eclipse.ui.preferencePages">
228
      <page
229
            category="org.txm.rcp.preferences.UserPreferencePage"
230
            class="org.txm.tigersearch.rcp.preferences.TIGERSearchPreferencePage"
231
            id="org.txm.tigersearch.rcp.preferences.TIGERSearchPreferencePage"
232
            name="TIGERSearch">
233
      </page>
234
   </extension>
235
   <extension
236
         point="org.eclipse.core.runtime.adapters">
237
      <factory
238
            adaptableType="org.txm.function.tigersearch.TIGERSearch"
239
            class="org.txm.tigersearch.rcp.TIGERSearchAdapterFactory">
240
         <adapter
241
               type="org.eclipse.ui.model.IWorkbenchAdapter">
242
         </adapter>
243
         <adapter
244
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
245
         </adapter>
246
      </factory>
247
   </extension>
248
   <extension
249
         point="org.eclipse.ui.preferencePages">
250
      <page
251
            category="org.txm.rcp.preferences.UserPreferencePage"
252
            class="org.txm.tigersearch.rcp.preferences.TIGERSearchPreferencePage"
253
            id="org.txm.tigersearch.rcp.preferences.TIGERSearchPreferencePage"
254
            name="TIGERSearch">
255
      </page>
256
   </extension>
257
   <extension
258
         point="org.eclipse.core.runtime.preferences">
259
      <initializer
260
            class="org.txm.tigersearch.rcp.preferences.TIGERSearchPreferences">
261
      </initializer>
262
   </extension>
263

    
264
</plugin>