Statistics
| Revision:

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

History | View | Annotate | Download (7.1 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
            id="org.txm.tigersearch.commands.ComputeTIGERSearch"
15
            name="%command.name">
16
      </command>
17
      <command
18
            categoryId="TIGERSearch4TXM.commands.category"
19
            defaultHandler="org.txm.tigersearch.commands.ComputeRecette1"
20
            id="org.txm.tigersearch.commands.ComputeRecette1"
21
            name="%command.name.0">
22
      </command>
23
      <command
24
            categoryId="TIGERSearch4TXM.commands.category"
25
            defaultHandler="org.txm.tigersearch.commands.ComputeRecette2"
26
            id="org.txm.tigersearch.commands.ComputeRecette2"
27
            name="%command.name.1">
28
      </command>
29
   </extension>
30
   <extension
31
         point="org.eclipse.core.expressions.propertyTesters">
32
      <propertyTester
33
            class="org.txm.tigersearch.rcp.tester.TIGERSearchTester"
34
            id="org.txm.rcp.testers.TIGERSearchTester"
35
            namespace="org.txm.rcp.testers"
36
            properties="TIGERSearchReady"
37
            type="java.lang.Object">
38
      </propertyTester>
39
   </extension>
40
   <extension
41
         point="org.eclipse.ui.menus">
42
      <menuContribution
43
            locationURI="menu:menu.tools?after=menu.tools.separator.misc">
44
         <command
45
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
46
               icon="icons/functions/TS.png"
47
               label="%command.label"
48
               style="push">
49
            <visibleWhen
50
                  checkEnabled="false">
51
               <or>
52
                  <reference
53
                        definitionId="OneCorpusSelected">
54
                  </reference>
55
               </or>
56
            </visibleWhen>
57
         </command>
58
      </menuContribution>
59
      <menuContribution
60
            locationURI="menu:menu.help.plugins">
61
         <command
62
               commandId="org.txm.rcp.commands.OpenBrowser"
63
               label="%command.label.0"
64
               style="push">
65
            <parameter
66
                  name="org.txm.rcp.commands.commandParameter2"
67
                  value="https://groupes.renater.fr/wiki/txm-users/public/extensions#tigersearch">
68
            </parameter>
69
         </command>
70
      </menuContribution>
71
      <menuContribution
72
            locationURI="menu:menu.recettes">
73
         <command
74
               commandId="org.txm.tigersearch.commands.ComputeRecette1"
75
               icon="icons/functions/TSIndex.png"
76
               label="%command.label.1"
77
               style="push">
78
            <visibleWhen
79
                  checkEnabled="false">
80
               <or>
81
                  <reference
82
                        definitionId="OneCorpusSelected">
83
                  </reference>
84
               </or>
85
            </visibleWhen>
86
         </command>
87
         <command
88
               commandId="org.txm.tigersearch.commands.ComputeRecette2"
89
               icon="icons/functions/TSIndex.png"
90
               label="%command.label.2"
91
               style="push">
92
            <visibleWhen
93
                  checkEnabled="false">
94
               <and>
95
                  <count
96
                        value="2">
97
                  </count>
98
                  <iterate>
99
                     <instanceof
100
                           value="org.txm.searchengine.cqp.corpus.Corpus">
101
                     </instanceof>
102
                  </iterate>
103
               </and>
104
            </visibleWhen>
105
         </command>
106
      </menuContribution>
107
      <menuContribution
108
            allPopups="false"
109
            locationURI="popup:org.txm.rcp.views.CorporaView">
110
         <command
111
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
112
               icon="icons/functions/TS.png"
113
               label="%command.label.3"
114
               style="push">
115
            <visibleWhen
116
                  checkEnabled="false">
117
               <or>
118
                  <reference
119
                        definitionId="OneCorpusSelected">
120
                  </reference>
121
               </or>
122
            </visibleWhen>
123
         </command>
124
      </menuContribution>
125
      <menuContribution
126
            allPopups="false"
127
            locationURI="toolbar:org.txm.rcp.toolbartools">
128
         <command
129
               commandId="org.txm.tigersearch.commands.ComputeTIGERSearch"
130
               icon="icons/functions/TS.png"
131
               label="%command.label.4"
132
               style="push">
133
            <visibleWhen
134
                  checkEnabled="false">
135
               <or>
136
                  <reference
137
                        definitionId="OneCorpusSelected">
138
                  </reference>
139
               </or>
140
            </visibleWhen>
141
         </command>
142
      </menuContribution>
143
      <menuContribution
144
            locationURI="menu:menu.file.import?before=menu.file.import.separator.software">
145
         <command
146
               commandId="org.txm.rcp.handlers.scripts.ExecuteImportScript"
147
               icon="icons/functions/TS.png"
148
               label="%command.label.5"
149
               style="push">
150
            <parameter
151
                  name="org.txm.rcp.commands.commandParameter3"
152
                  value="tigersearch/tigersearchLoader.groovy">
153
            </parameter>
154
         </command>
155
      </menuContribution>
156
   </extension>
157
   <extension
158
         point="org.eclipse.ui.editors">
159
      <editor
160
            class="org.txm.tigersearch.editors.TIGERSearchEditor"
161
            default="false"
162
            icon="icons/functions/TS.png"
163
            id="org.txm.tigersearch.editors.TIGERSearchEditor"
164
            name="%editor.name">
165
      </editor>
166
      <editor
167
            class="org.txm.tigersearch.editors.TSIndexEditor"
168
            default="false"
169
            icon="icons/functions/TSIndex.png"
170
            id="org.txm.tigersearch.editors.TSIndexEditor"
171
            name="%editor.name.0">
172
      </editor>
173
   </extension>
174
   <extension
175
         point="org.txm.PostInstallationStep">
176
   </extension>
177
   <extension
178
         point="org.eclipse.ui.handlers">
179
      <handler
180
            class="org.txm.tigersearch.commands.ComputeTIGERSearch"
181
            commandId="org.txm.tigersearch.commands.ComputeTIGERSearch">
182
         <enabledWhen>
183
            <test
184
                  forcePluginActivation="true"
185
                  property="org.txm.rcp.testers.TIGERSearchReady"
186
                  value="TIGERSearchReady">
187
            </test>
188
         </enabledWhen>
189
      </handler>
190
   </extension>
191
   <extension
192
         point="org.txm.PostTXMHOMEInstallationStep">
193
      <PostTXMHOMEInstallationStep
194
            class="org.txm.tigersearch.rcp.InstallGroovyTIGERFiles"
195
            description="Install TIGER Groovy Files"
196
            name="Install TIGER Groovy Files">
197
      </PostTXMHOMEInstallationStep>
198
   </extension>
199
   <extension
200
         point="org.txm.searchengine.core.SearchEngine">
201
      <SearchEngine
202
            class="org.txm.searchengine.ts.TIGERSearchEngine">
203
      </SearchEngine>
204
   </extension>
205

    
206
</plugin>