Statistics
| Revision:

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

History | View | Annotate | Download (8.6 kB)

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
               tooltip="%command.tooltip">
89
            <visibleWhen
90
                  checkEnabled="false">
91
               <or>
92
                  <reference
93
                        definitionId="OnePartitionIndexSelected">
94
                  </reference>
95
                  <reference
96
                        definitionId="OneLexicalTableAbleSelected">
97
                  </reference>
98
               </or>
99
            </visibleWhen>
100
         </command>
101
         <command
102
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
103
               icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/import_wiz.png"
104
               style="push">
105
            <visibleWhen
106
                  checkEnabled="false">
107
               <reference
108
                     definitionId="OneLexicalTableSelected">
109
               </reference>
110
            </visibleWhen>
111
         </command>
112
      </menuContribution>
113
      <menuContribution
114
            allPopups="false"
115
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart">
116
         <command
117
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
118
               icon="icons/lexicaltable.png"
119
               id="ComputeLexicalTableFromPartition"
120
               style="push"
121
               tooltip="%command.tooltip">
122
            <visibleWhen
123
                  checkEnabled="false">
124
               <or>
125
                  <reference
126
                        definitionId="OnePartitionSelected">
127
                  </reference>
128
               </or>
129
            </visibleWhen>
130
         </command>
131
      </menuContribution>
132
            <menuContribution
133
            locationURI="popup:org.txm.lexicaltable.rcp.editors.LexicalTableEditor">
134
         <command
135
               commandId="org.txm.lexicaltable.rcp.handlers.DeleteLines"
136
               style="push">
137
         </command>
138
         <command
139
               commandId="org.txm.lexicaltable.rcp.handlers.MergeLines"
140
               style="push">
141
         </command>
142
         <separator
143
               name="org.txm.rcp.LT.separator1"
144
               visible="true">
145
         </separator>
146
         <command
147
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
148
               icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/import_wiz.png"
149
               style="push">
150
         </command>
151
      </menuContribution>
152
      
153
   </extension>
154
   <extension
155
         point="org.eclipse.ui.commands">
156
      <command
157
            categoryId="org.txm.rcp.category.txm"
158
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
159
            id="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
160
            name="%command.name"
161
            returnTypeId="org.txm.lexicaltable.core.functions.LexicalTable">
162
      </command>
163
               <command
164
            categoryId="org.txm.rcp.category.txm"
165
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
166
            id="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
167
            name="%command.name.0">
168
      </command>
169
            <command
170
            defaultHandler="org.txm.lexicaltable.rcp.handlers.DeleteLines"
171
            id="org.txm.lexicaltable.rcp.handlers.DeleteLines"
172
            name="%command.name.37">
173
      </command>
174
      
175
      <command
176
            defaultHandler="org.txm.lexicaltable.rcp.handlers.MergeLines"
177
            id="org.txm.lexicaltable.rcp.handlers.MergeLines"
178
            name="%command.name.38">
179
      </command>
180
      <command
181
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ImportTable"
182
            id="org.txm.lexicaltable.rcp.handlers.ImportTable"
183
            name="%command.name.40">
184
      </command>
185
   </extension>
186
   <extension
187
         point="org.eclipse.ui.editors">
188
      <editor
189
            class="org.txm.lexicaltable.rcp.editors.LexicalTableEditor"
190
            default="false"
191
            icon="icons/lexicaltable.png"
192
            id="org.txm.lexicaltable.rcp.editors.LexicalTableEditor"
193
            name="%editor.name">
194
      </editor>
195
   </extension>
196
   <extension
197
         point="org.eclipse.core.runtime.adapters">
198
      <factory
199
            adaptableType="org.txm.lexicaltable.core.functions.LexicalTable"
200
            class="org.txm.lexicaltable.rcp.adapters.LexicalTableAdapterFactory">
201
         <adapter
202
               type="org.eclipse.ui.model.IWorkbenchAdapter">
203
         </adapter>
204
         <adapter
205
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
206
         </adapter>
207
      </factory>
208
      <factory
209
            adaptableType="org.txm.functions.intertextualdistance.InterTextDistance"
210
            class="org.txm.lexicaltable.rcp.adapters.InterTextDistanceAdapterFactory">
211
         <adapter
212
               type="org.eclipse.ui.model.IWorkbenchAdapter">
213
         </adapter>
214
         <adapter
215
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
216
         </adapter>
217
      </factory>
218
   </extension>
219
   <extension
220
         point="org.eclipse.core.expressions.definitions">
221
      <definition
222
            id="OneLexicalTableSelected">
223
         <with
224
               variable="selection">
225
            <iterate
226
                  ifEmpty="false"
227
                  operator="and">
228
               <instanceof
229
                     value="org.txm.lexicaltable.core.functions.LexicalTable">
230
               </instanceof>
231
            </iterate>
232
         </with>
233
      </definition>
234
   </extension>
235

    
236
</plugin>