Statistics
| Revision:

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

History | View | Annotate | Download (7.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
      </menuContribution>
37
      <menuContribution
38
            locationURI="menu:menu.corpus">
39
         <command
40
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
41
               icon="icons/lexicaltable.png"
42
               style="push">
43
            <visibleWhen
44
                  checkEnabled="false">
45
               <or>
46
                  <reference
47
                        definitionId="OnePartitionSelected">
48
                  </reference>
49
                  <reference
50
                        definitionId="OnePartitionIndexSelected">
51
                  </reference>
52
                  <reference
53
                        definitionId="OneLexicalTableAbleSelected">
54
                  </reference>
55
               </or>
56
            </visibleWhen>
57
         </command>
58
      </menuContribution>
59
      <menuContribution
60
            allPopups="false"
61
            locationURI="toolbar:org.txm.rcp.toolbartools">
62
         <command
63
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
64
               icon="icons/lexicaltable.png"
65
               style="push"
66
               tooltip="%command.tooltip">
67
            <visibleWhen
68
                  checkEnabled="false">
69
               <or>
70
                  <reference
71
                        definitionId="OnePartitionIndexSelected">
72
                  </reference>
73
                  <reference
74
                        definitionId="OneLexicalTableAbleSelected">
75
                  </reference>
76
               </or>
77
            </visibleWhen>
78
         </command>
79
      </menuContribution>
80
      <menuContribution
81
            allPopups="false"
82
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.partition.rcp.handlers.ComputePartitionDimensionsBarChart">
83
         <command
84
               commandId="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
85
               icon="icons/lexicaltable.png"
86
               id="ComputeLexicalTableFromPartition"
87
               style="push"
88
               tooltip="%command.tooltip">
89
            <visibleWhen
90
                  checkEnabled="false">
91
               <or>
92
                  <reference
93
                        definitionId="OnePartitionSelected">
94
                  </reference>
95
               </or>
96
            </visibleWhen>
97
         </command>
98
      </menuContribution>
99
            <menuContribution
100
            locationURI="popup:org.txm.lexicaltable.rcp.editors.LexicalTableEditor">
101
         <command
102
               commandId="org.txm.lexicaltable.rcp.handlers.DeleteLines"
103
               style="push">
104
         </command>
105
         <command
106
               commandId="org.txm.lexicaltable.rcp.handlers.MergeLines"
107
               style="push">
108
         </command>
109
         <separator
110
               name="org.txm.rcp.LT.separator1"
111
               visible="true">
112
         </separator>
113
         <command
114
               commandId="org.txm.lexicaltable.rcp.handlers.ExportLexicalTable"
115
               style="push">
116
         </command>
117
         <command
118
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
119
               style="push">
120
         </command>
121
      </menuContribution>
122
      
123
   </extension>
124
   <extension
125
         point="org.eclipse.ui.commands">
126
      <command
127
            categoryId="org.txm.rcp.category.txm"
128
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
129
            id="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
130
            name="%command.name"
131
            returnTypeId="org.txm.lexicaltable.core.functions.LexicalTable">
132
      </command>
133
               <command
134
            categoryId="org.txm.rcp.category.txm"
135
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
136
            id="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
137
            name="%command.name.0">
138
      </command>
139
            <command
140
            defaultHandler="org.txm.lexicaltable.rcp.handlers.DeleteLines"
141
            id="org.txm.lexicaltable.rcp.handlers.DeleteLines"
142
            name="%command.name.37">
143
      </command>
144
      
145
      <command
146
            defaultHandler="org.txm.lexicaltable.rcp.handlers.MergeLines"
147
            id="org.txm.lexicaltable.rcp.handlers.MergeLines"
148
            name="%command.name.38">
149
      </command>
150
      <command
151
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ExportLexicalTable"
152
            id="org.txm.lexicaltable.rcp.handlers.ExportLexicalTable"
153
            name="%command.name.39">
154
      </command>
155
      <command
156
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ImportTable"
157
            id="org.txm.lexicaltable.rcp.handlers.ImportTable"
158
            name="%command.name.40">
159
      </command>
160
   </extension>
161
   <extension
162
         point="org.eclipse.ui.editors">
163
      <editor
164
            class="org.txm.lexicaltable.rcp.editors.LexicalTableEditor"
165
            default="false"
166
            icon="icons/lexicaltable.png"
167
            id="org.txm.lexicaltable.rcp.editors.LexicalTableEditor"
168
            name="%editor.name">
169
      </editor>
170
   </extension>
171
   <extension
172
         point="org.eclipse.core.runtime.adapters">
173
      <factory
174
            adaptableType="org.txm.lexicaltable.core.functions.LexicalTable"
175
            class="org.txm.lexicaltable.rcp.adapters.LexicalTableAdapterFactory">
176
         <adapter
177
               type="org.eclipse.ui.model.IWorkbenchAdapter">
178
         </adapter>
179
         <adapter
180
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
181
         </adapter>
182
      </factory>
183
      <factory
184
            adaptableType="org.txm.functions.intertextualdistance.InterTextDistance"
185
            class="org.txm.lexicaltable.rcp.adapters.InterTextDistanceAdapterFactory">
186
         <adapter
187
               type="org.eclipse.ui.model.IWorkbenchAdapter">
188
         </adapter>
189
         <adapter
190
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
191
         </adapter>
192
      </factory>
193
   </extension>
194
   <extension
195
         point="org.eclipse.core.expressions.definitions">
196
      <definition
197
            id="OneLexicalTableSelected">
198
         <with
199
               variable="selection">
200
            <iterate
201
                  ifEmpty="false"
202
                  operator="and">
203
               <instanceof
204
                     value="org.txm.lexicaltable.core.functions.LexicalTable">
205
               </instanceof>
206
            </iterate>
207
         </with>
208
      </definition>
209
   </extension>
210

    
211
</plugin>