Statistics
| Revision:

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

History | View | Annotate | Download (6.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.CorporaView">
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="OneIndexSelected">
29
                  </reference>
30
                  <reference
31
                        definitionId="OneLexicalTableAbleSelected">
32
                  </reference>
33
               </or>
34
            </visibleWhen>
35
         </command>
36
      </menuContribution>
37
      <menuContribution
38
            locationURI="menu:menu.tools">
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="OneIndexSelected">
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="OnePartitionSelected">
72
                  </reference>
73
                  <reference
74
                        definitionId="OneIndexSelected">
75
                  </reference>
76
                  <reference
77
                        definitionId="OneLexicalTableAbleSelected">
78
                  </reference>
79
               </or>
80
            </visibleWhen>
81
         </command>
82
      </menuContribution>
83
            <menuContribution
84
            locationURI="popup:LexicalTableEditor">
85
         <command
86
               commandId="org.txm.lexicaltable.rcp.handlers.DeleteLines"
87
               style="push">
88
         </command>
89
         <command
90
               commandId="org.txm.lexicaltable.rcp.handlers.MergeLines"
91
               style="push">
92
         </command>
93
         <separator
94
               name="org.txm.rcp.LT.separator1"
95
               visible="true">
96
         </separator>
97
         <command
98
               commandId="org.txm.lexicaltable.rcp.handlers.ExportLexicalTable"
99
               style="push">
100
         </command>
101
         <command
102
               commandId="org.txm.lexicaltable.rcp.handlers.ImportTable"
103
               style="push">
104
         </command>
105
      </menuContribution>
106
      
107
   </extension>
108
   <extension
109
         point="org.eclipse.ui.commands">
110
      <command
111
            categoryId="org.txm.rcp.category.txm"
112
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
113
            id="org.txm.lexicaltable.rcp.handlers.ComputeLexicalTable"
114
            name="%command.name">
115
      </command>
116
               <command
117
            categoryId="org.txm.rcp.category.txm"
118
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
119
            id="org.txm.lexicaltable.rcp.handlers.ComputeInterTextDistance"
120
            name="Intertextual distance">
121
      </command>
122
            <command
123
            defaultHandler="org.txm.lexicaltable.rcp.handlers.DeleteLines"
124
            id="org.txm.lexicaltable.rcp.handlers.DeleteLines"
125
            name="%command.name.37">
126
      </command>
127
      
128
      <command
129
            defaultHandler="org.txm.lexicaltable.rcp.handlers.MergeLines"
130
            id="org.txm.lexicaltable.rcp.handlers.MergeLines"
131
            name="%command.name.38">
132
      </command>
133
      <command
134
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ExportLexicalTable"
135
            id="org.txm.lexicaltable.rcp.handlers.ExportLexicalTable"
136
            name="%command.name.39">
137
      </command>
138
      <command
139
            defaultHandler="org.txm.lexicaltable.rcp.handlers.ImportTable"
140
            id="org.txm.lexicaltable.rcp.handlers.ImportTable"
141
            name="%command.name.40">
142
      </command>
143
   </extension>
144
   <extension
145
         point="org.eclipse.ui.editors">
146
      <editor
147
            class="org.txm.lexicaltable.rcp.editors.LexicalTableEditor2"
148
            default="false"
149
            icon="icons/lexicaltable.png"
150
            id="LexicalTableEditor"
151
            name="%editor.name">
152
      </editor>
153
   </extension>
154
   <extension
155
         point="org.eclipse.core.runtime.adapters">
156
      <factory
157
            adaptableType="org.txm.lexicaltable.core.functions.LexicalTable"
158
            class="org.txm.lexicaltable.rcp.adapters.LexicalTableAdapterFactory">
159
         <adapter
160
               type="org.eclipse.ui.model.IWorkbenchAdapter">
161
         </adapter>
162
      </factory>
163
      <factory
164
            adaptableType="org.txm.functions.intertextualdistance.InterTextDistance"
165
            class="org.txm.lexicaltable.rcp.adapters.InterTextDistanceAdapterFactory">
166
         <adapter
167
               type="org.eclipse.ui.model.IWorkbenchAdapter">
168
         </adapter>
169
      </factory>
170
   </extension>
171
   <extension
172
         point="org.eclipse.core.expressions.definitions">
173
      <definition
174
            id="OneLexicalTableSelected">
175
         <with
176
               variable="selection">
177
            <iterate
178
                  ifEmpty="false"
179
                  operator="and">
180
               <instanceof
181
                     value="org.txm.lexicaltable.core.functions.LexicalTable">
182
               </instanceof>
183
            </iterate>
184
         </with>
185
      </definition>
186
   </extension>
187

    
188
</plugin>