Statistics
| Revision:

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

History | View | Annotate | Download (7.2 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="TIGERSearch commands"
9
            id="TIGERSearch4TXM.commands.category"
10
            name="TIGERSearch">
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="OpenTIGERSearch">
17
      </command>
18
      <command
19
            categoryId="TIGERSearch4TXM.commands.category"
20
            defaultHandler="org.txm.tigersearch.commands.ComputeTSIndex"
21
            id="org.txm.tigersearch.commands.ComputeTSIndex"
22
            name="ComputeTSIndex">
23
      </command>
24
      <command
25
            categoryId="TIGERSearch4TXM.commands.category"
26
            defaultHandler="org.txm.tigersearch.commands.ComputeRecette1"
27
            id="org.txm.tigersearch.commands.ComputeRecette1"
28
            name="ComputeRecette1">
29
      </command>
30
      <command
31
            categoryId="TIGERSearch4TXM.commands.category"
32
            defaultHandler="org.txm.tigersearch.commands.ComputeRecette2"
33
            id="org.txm.tigersearch.commands.ComputeRecette2"
34
            name="ComputeRecette2">
35
      </command>
36
   </extension>
37
   <extension
38
         point="org.eclipse.ui.menus">
39
      <menuContribution
40
            locationURI="menu:menu.tools">
41
         <command
42
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
43
               icon="icons/functions/TS.png"
44
               label="TIGERSearch"
45
               style="push">
46
            <visibleWhen
47
                  checkEnabled="false">
48
               <or>
49
                  <reference
50
                        definitionId="OneCorpusSelected">
51
                  </reference>
52
               </or>
53
            </visibleWhen>
54
         </command>
55
         <command
56
               commandId="org.txm.tigersearch.commands.ComputeTSIndex"
57
               icon="icons/functions/TSIndex.png"
58
               label="TS Index"
59
               style="push">
60
            <visibleWhen
61
                  checkEnabled="false">
62
               <or>
63
                  <reference
64
                        definitionId="OneCorpusSelected">
65
                  </reference>
66
                  <reference
67
                        definitionId="OnePartitionSelected">
68
                  </reference>
69
               </or>
70
            </visibleWhen>
71
         </command>
72
      </menuContribution>
73
      <menuContribution
74
            locationURI="menu:menu.help.plugins">
75
         <command
76
               commandId="org.txm.rcpapplication.commands.OpenBrowser"
77
               label="TIGERSearch"
78
               style="push">
79
            <parameter
80
                  name="org.txm.rcpapplication.commands.commandParameter2"
81
                  value="https://groupes.renater.fr/wiki/txm-users/public/extensions#tigersearch">
82
            </parameter>
83
         </command>
84
      </menuContribution>
85
      <menuContribution
86
            locationURI="menu:menu.recettes">
87
         <command
88
               commandId="org.txm.tigersearch.commands.ComputeRecette1"
89
               icon="icons/functions/TSIndex.png"
90
               label="TS Index Recette 1"
91
               style="push">
92
            <visibleWhen
93
                  checkEnabled="false">
94
               <or>
95
                  <reference
96
                        definitionId="OneCorpusSelected">
97
                  </reference>
98
               </or>
99
            </visibleWhen>
100
         </command>
101
         <command
102
               commandId="org.txm.tigersearch.commands.ComputeRecette2"
103
               icon="icons/functions/TSIndex.png"
104
               label="TS Index Recette 2"
105
               style="push">
106
            <visibleWhen
107
                  checkEnabled="false">
108
               <and>
109
                  <count
110
                        value="2">
111
                  </count>
112
                  <iterate>
113
                     <instanceof
114
                           value="org.txm.searchengine.cqp.corpus.Corpus">
115
                     </instanceof>
116
                  </iterate>
117
               </and>
118
            </visibleWhen>
119
         </command>
120
      </menuContribution>
121
      <menuContribution
122
            allPopups="false"
123
            locationURI="popup:org.txm.rcpapplication.views.CorporaView">
124
         <command
125
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
126
               icon="icons/functions/TS.png"
127
               label="TIGERSearch"
128
               style="push">
129
            <visibleWhen
130
                  checkEnabled="false">
131
               <or>
132
                  <reference
133
                        definitionId="OneCorpusSelected">
134
                  </reference>
135
               </or>
136
            </visibleWhen>
137
         </command>
138
         <command
139
               commandId="org.txm.tigersearch.commands.ComputeTSIndex"
140
               icon="icons/functions/TSIndex.png"
141
               label="TS Index"
142
               style="push">
143
            <visibleWhen
144
                  checkEnabled="false">
145
               <or>
146
                  <reference
147
                        definitionId="OneCorpusSelected">
148
                  </reference>
149
                  <reference
150
                        definitionId="OnePartitionSelected">
151
                  </reference>
152
               </or>
153
            </visibleWhen>
154
         </command>
155
      </menuContribution>
156
      <menuContribution
157
            allPopups="false"
158
            locationURI="toolbar:org.txm.rcpapplication.toolbartools">
159
         <command
160
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
161
               icon="icons/functions/TS.png"
162
               label="TIGERSearch"
163
               style="push">
164
            <visibleWhen
165
                  checkEnabled="false">
166
               <or>
167
                  <reference
168
                        definitionId="OneCorpusSelected">
169
                  </reference>
170
               </or>
171
            </visibleWhen>
172
         </command>
173
         <command
174
               commandId="org.txm.tigersearch.commands.ComputeTSIndex"
175
               icon="icons/functions/TSIndex.png"
176
               label="TS Index"
177
               style="push">
178
            <visibleWhen
179
                  checkEnabled="false">
180
               <or>
181
                  <reference
182
                        definitionId="OneCorpusSelected">
183
                  </reference>
184
                  <reference
185
                        definitionId="OnePartitionSelected">
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="TIGERSearch">
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="TSIndex">
207
      </editor>
208
   </extension>
209

    
210
</plugin>