Statistiques
| Révision :

root / tmp / org.txm.lexicaltable.rcp / plugin.xml @ 3151

Historique | Voir | Annoter | Télécharger (8,54 ko)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>  
4
   <extension
5
         point="org.eclipse.ui.preferencePages">
6
      <page
7
            category="org.txm.rcp.preferences.UserPreferencePage"
8
            class="org.txm.lexicaltable.rcp.preferences.LexicalTablePreferencePage"
9
            id="org.txm.lexicaltable.rcp.preferences.LexicalTablePreferencePage"
10
            name="%page.name">
11
      </page>
12
   </extension>
13
   <extension
14
         point="org.eclipse.ui.menus">
15
      <menuContribution
16
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.manage">
17
         <command
18
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
19
               icon="icons/lexicaltable.png"
20
               style="push">
21
            <visibleWhen
22
                  checkEnabled="false">
23
               <or>
24
                  <reference
25
                        definitionId="OnePartitionSelected">
26
                  </reference>
27
                  <reference
28
                        definitionId="OnePartitionIndexSelected">
29
                  </reference>
30
                  <reference
31
                        definitionId="OneLexicalTableAbleSelected">
32
                  </reference>
33
               </or>
34
            </visibleWhen>
35
         </command>
36
         <command
37
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
38
               icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/import_wiz.png"
39
               style="push">
40
            <visibleWhen
41
                  checkEnabled="false">
42
               <reference
43
                     definitionId="OneLexicalTableSelected">
44
               </reference>
45
            </visibleWhen>
46
         </command>
47
      </menuContribution>
48
      <menuContribution
49
            locationURI="menu:menu.corpus">
50
         <command
51
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
52
               icon="icons/lexicaltable.png"
53
               style="push">
54
            <visibleWhen
55
                  checkEnabled="false">
56
               <or>
57
                  <reference
58
                        definitionId="OnePartitionSelected">
59
                  </reference>
60
                  <reference
61
                        definitionId="OnePartitionIndexSelected">
62
                  </reference>
63
                  <reference
64
                        definitionId="OneLexicalTableAbleSelected">
65
                  </reference>
66
               </or>
67
            </visibleWhen>
68
         </command>
69
         <command
70
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
71
               icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/import_wiz.png"
72
               style="push">
73
            <visibleWhen
74
                  checkEnabled="false">
75
               <reference
76
                     definitionId="OneLexicalTableSelected">
77
               </reference>
78
            </visibleWhen>
79
         </command>
80
      </menuContribution>
81
      <menuContribution
82
            allPopups="false"
83
            locationURI="toolbar:org.txm.rcp.toolbartools">
84
         <command
85
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
86
               icon="icons/lexicaltable.png"
87
               style="push">
88
            <visibleWhen
89
                  checkEnabled="false">
90
               <or>
91
                  <reference
92
                        definitionId="OnePartitionIndexSelected">
93
                  </reference>
94
                  <reference
95
                        definitionId="OneLexicalTableAbleSelected">
96
                  </reference>
97
               </or>
98
            </visibleWhen>
99
         </command>
100
         <command
101
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
102
               icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/import_wiz.png"
103
               style="push">
104
            <visibleWhen
105
                  checkEnabled="false">
106
               <reference
107
                     definitionId="OneLexicalTableSelected">
108
               </reference>
109
            </visibleWhen>
110
         </command>
111
      </menuContribution>
112
      <menuContribution
113
            allPopups="false"
114
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart">
115
         <command
116
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
117
               icon="icons/lexicaltable.png"
118
               id="ComputeLexicalTableFromPartition"
119
               style="push">
120
            <visibleWhen
121
                  checkEnabled="false">
122
               <or>
123
                  <reference
124
                        definitionId="OnePartitionSelected">
125
                  </reference>
126
               </or>
127
            </visibleWhen>
128
         </command>
129
      </menuContribution>
130
            <menuContribution
131
            locationURI="popup:org.txm.lexicaltable.rcp.editors.LexicalTableEditor">
132
         <command
133
               commandId="org.txm.lexicaltable.rcp.handlers.DeleteLines"
134
               style="push">
135
         </command>
136
         <command
137
               commandId="org.txm.lexicaltable.rcp.handlers.MergeLines"
138
               style="push">
139
         </command>
140
         <separator
141
               name="org.txm.rcp.LT.separator1"
142
               visible="true">
143
         </separator>
144
         <command
145
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
146
               icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/import_wiz.png"
147
               style="push">
148
         </command>
149
      </menuContribution>
150
      
151
   </extension>
152
   <extension
153
         point="org.eclipse.ui.commands">
154
      <command
155
            categoryId="org.txm.rcp.category.txm"
156
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
157
            id="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
158
            name="%command.name"
159
            returnTypeId="org.txm.lexicaltable.core.functions.LexicalTable">
160
      </command>
161
               <command
162
            categoryId="org.txm.rcp.category.txm"
163
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
164
            id="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
165
            name="%command.name.0">
166
      </command>
167
            <command
168
            defaultHandler="org.txm.lexicaltable.rcp.handlers.DeleteLines"
169
            id="org.txm.lexicaltable.rcp.handlers.DeleteLines"
170
            name="%command.name.37">
171
      </command>
172
      
173
      <command
174
            defaultHandler="org.txm.lexicaltable.rcp.handlers.MergeLines"
175
            id="org.txm.lexicaltable.rcp.handlers.MergeLines"
176
            name="%command.name.38">
177
      </command>
178
      <command
179
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ImportTable"
180
            id="org.txm.lexicaltable.rcp.handlers.ImportTable"
181
            name="%command.name.40">
182
      </command>
183
   </extension>
184
   <extension
185
         point="org.eclipse.ui.editors">
186
      <editor
187
            class="org.txm.lexicaltable.rcp.editors.LexicalTableEditor"
188
            default="false"
189
            icon="icons/lexicaltable.png"
190
            id="org.txm.lexicaltable.rcp.editors.LexicalTableEditor"
191
            name="%editor.name">
192
      </editor>
193
   </extension>
194
   <extension
195
         point="org.eclipse.core.runtime.adapters">
196
      <factory
197
            adaptableType="org.txm.lexicaltable.core.functions.LexicalTable"
198
            class="org.txm.lexicaltable.rcp.adapters.LexicalTableAdapterFactory">
199
         <adapter
200
               type="org.eclipse.ui.model.IWorkbenchAdapter">
201
         </adapter>
202
         <adapter
203
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
204
         </adapter>
205
      </factory>
206
      <factory
207
            adaptableType="org.txm.functions.intertextualdistance.InterTextDistance"
208
            class="org.txm.lexicaltable.rcp.adapters.InterTextDistanceAdapterFactory">
209
         <adapter
210
               type="org.eclipse.ui.model.IWorkbenchAdapter">
211
         </adapter>
212
         <adapter
213
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
214
         </adapter>
215
      </factory>
216
   </extension>
217
   <extension
218
         point="org.eclipse.core.expressions.definitions">
219
      <definition
220
            id="OneLexicalTableSelected">
221
         <with
222
               variable="selection">
223
            <iterate
224
                  ifEmpty="false"
225
                  operator="and">
226
               <instanceof
227
                     value="org.txm.lexicaltable.core.functions.LexicalTable">
228
               </instanceof>
229
            </iterate>
230
         </with>
231
      </definition>
232
   </extension>
233

    
234
</plugin>