Statistics
| Revision:

root / tmp / org.txm.concordance.rcp / plugin.xml @ 845

History | View | Annotate | Download (8.7 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
  <extension-point id="org.txm.rcp.extensionpoint.backtotext" name="Back to text" schema="schema/org.txm.rcp.extensionpoint.backtotext.exsd"/>
5
  <extension-point id="org.txm.concordance.rcp.editors.ConcordanceEditorExtension" name="concordance extension" schema="schema/org.txm.concordance.rcp.concordanceeditor.extension.exsd"/>
6

    
7
   <extension
8
         point="org.eclipse.core.runtime.adapters">
9
      <factory
10
            adaptableType="org.txm.concordance.core.functions.Concordance"
11
            class="org.txm.concordance.rcp.adapters.ConcordanceAdapterFactory">
12
         <adapter
13
               type="org.eclipse.ui.model.IWorkbenchAdapter">
14
         </adapter>
15
      </factory>
16
   </extension>
17
   <extension
18
         point="org.eclipse.core.expressions.definitions">
19
      <definition
20
            id="OneConcordanceSelected">
21
         <with
22
               variable="selection">
23
            <iterate
24
                  ifEmpty="false"
25
                  operator="and">
26
               <instanceof
27
                     value="org.txm.concordance.core.functions.Concordance">
28
               </instanceof>
29
            </iterate>
30
         </with>
31
      </definition>
32
   </extension>
33
   <extension
34
         point="org.eclipse.ui.menus">
35
      <menuContribution
36
            allPopups="false"
37
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.index.rcp.handlers.ComputeIndex">
38
         <command
39
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
40
               icon="icons/concordance.png"
41
               style="push">
42
            <visibleWhen
43
                  checkEnabled="false">
44
               <or>
45
                  <reference
46
                        definitionId="OneCorpusSelected">
47
                  </reference>
48
               </or>
49
            </visibleWhen>
50
         </command>
51
      </menuContribution>
52
      <menuContribution
53
            locationURI="menu:menu.tools?after=org.txm.index.rcp.handlers.ComputeIndex">
54
         <command
55
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
56
               icon="icons/concordance.png"
57
               style="push">
58
            <visibleWhen
59
                  checkEnabled="false">
60
               <or>
61
                  <reference
62
                        definitionId="OneCorpusSelected">
63
                  </reference>
64
               </or>
65
            </visibleWhen>
66
         </command>
67
      </menuContribution>
68
      <menuContribution
69
            allPopups="false"
70
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.index.rcp.handlers.ComputeIndex">
71
         <command
72
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
73
               icon="icons/concordance.png"
74
               style="push"
75
               tooltip="%command.tooltip">
76
            <visibleWhen
77
                  checkEnabled="false">
78
               <or>
79
                  <reference
80
                        definitionId="OneCorpusSelected">
81
                  </reference>
82
               </or>
83
            </visibleWhen>
84
         </command>
85
      </menuContribution>
86
      <menuContribution
87
            locationURI="popup:org.txm.concordance.rcp.editors.ConcordanceEditor">
88
         <command
89
               commandId="org.txm.concordance.rcp.handlers.DeleteLines"
90
               icon="platform:/plugin/org.txm.rcp/icons/cross.png"
91
               style="push">
92
         </command>
93
      </menuContribution>
94
      <menuContribution
95
            locationURI="toolbar:org.txm.concordance.rcp.editors.ConcordanceEditor">
96
         <command
97
               commandId="org.txm.concordance.rcp.handlers.DeleteLines"
98
               icon="platform:/plugin/org.txm.rcp/icons/cross.png"
99
               style="push">
100
         </command>
101
      </menuContribution>
102
      <menuContribution
103
            locationURI="popup:org.txm.index.rcp.editors.IndexEditor">
104
         <command
105
               commandId="org.txm.concordance.rcp.commands.SendToConcordance"
106
               icon="icons/concordance.png"
107
               label="%command.name.1"
108
               style="push">
109
            <parameter
110
                  name="sendToTargetCommandId"
111
                  value="org.txm.concordance.rcp.handlers.ComputeConcordance">
112
            </parameter>
113
         </command>
114
      </menuContribution>
115
      <menuContribution
116
            locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
117
         <command
118
               commandId="org.txm.concordance.rcp.commands.SendToConcordance"
119
               icon="icons/concordance.png"
120
               label="%command.name.1"
121
               style="push">
122
            <parameter
123
                  name="sendToTargetCommandId"
124
                  value="org.txm.concordance.rcp.handlers.ComputeConcordance">
125
            </parameter>
126
         </command>
127
      </menuContribution>
128
      <menuContribution
129
            locationURI="popup:org.txm.cooccurrence.rcp.editors.CooccurrencesEditor">
130
         <command
131
               commandId="org.txm.concordance.rcp.commands.SendToConcordance"
132
               icon="icons/concordance.png"
133
               label="%command.name.1"
134
               style="push">
135
            <parameter
136
                  name="sendToTargetCommandId"
137
                  value="org.txm.concordance.rcp.handlers.ComputeConcordance">
138
            </parameter>
139
         </command>
140
      </menuContribution>
141
      <menuContribution
142
            locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
143
         <command
144
               commandId="org.txm.concordance.rcp.commands.SendToConcordance"
145
               icon="icons/concordance.png"
146
               label="%command.name.1"
147
               style="push">
148
            <parameter
149
                  name="sendToTargetCommandId"
150
                  value="org.txm.concordance.rcp.handlers.ComputeConcordance">
151
            </parameter>
152
         </command>
153
      </menuContribution>
154
      <menuContribution
155
            locationURI="popup:org.txm.referencer.rcp.editors.ReferencerEditor">
156
         <command
157
               commandId="org.txm.concordance.rcp.commands.SendToConcordance"
158
               icon="icons/concordance.png"
159
               label="%command.name.1"
160
               style="push">
161
            <parameter
162
                  name="sendToTargetCommandId"
163
                  value="org.txm.concordance.rcp.handlers.ComputeConcordance">
164
            </parameter>
165
         </command>
166
      </menuContribution>
167
      <menuContribution
168
            locationURI="popup:org.txm.edition.rcp.editors.SynopticEditionEditor">
169
         <command
170
               commandId="org.txm.concordance.rcp.commands.SendToConcordance"
171
               icon="icons/concordance.png"
172
               label="%command.name.1"
173
               style="push">
174
            <parameter
175
                  name="sendToTargetCommandId"
176
                  value="org.txm.concordance.rcp.handlers.ComputeConcordance">
177
            </parameter>
178
         </command>
179
      </menuContribution>
180
   </extension>
181
   <extension
182
         point="org.eclipse.ui.commands">
183
      <command
184
            categoryId="org.txm.rcp.category.txm"
185
            defaultHandler="org.txm.concordance.rcp.handlers.ComputeConcordance"
186
            id="org.txm.concordance.rcp.handlers.ComputeConcordance"
187
            name="%command.name"
188
            returnTypeId="org.txm.concordance.core.functions.Concordance">
189
         <commandParameter
190
               id="org.txm.core.results.TXMParameters"
191
               name="TXM Parameter"
192
               optional="true">
193
         </commandParameter>
194
      </command>
195
      <command
196
            defaultHandler="org.txm.concordance.rcp.handlers.DeleteLines"
197
            id="org.txm.concordance.rcp.handlers.DeleteLines"
198
            name="%command.name.37">
199
      </command>
200
      <command
201
            categoryId="org.txm.rcp.category.txm"
202
            id="org.txm.concordance.rcp.commands.SendToConcordance"
203
            name="%command.name.1">
204
         <commandParameter
205
               id="sendToTargetCommandId"
206
               name="sendToTargetCommandId"
207
               optional="true">
208
         </commandParameter>
209
      </command>
210
   </extension>
211
   <extension
212
         point="org.eclipse.ui.preferencePages">
213
      <page
214
            category="org.txm.rcp.preferences.UserPreferencePage"
215
            class="org.txm.concordance.rcp.preferences.ConcordancePreferencePage"
216
            id="ConcordancePreferencePage"
217
            name="%page.name">
218
      </page>
219
   </extension>
220
   <extension
221
         point="org.eclipse.ui.editors">
222
      <editor
223
            class="org.txm.concordance.rcp.editors.ConcordanceEditor"
224
            default="false"
225
            icon="icons/concordance.png"
226
            id="org.txm.concordance.rcp.editors.ConcordanceEditor"
227
            name="%editor.name">
228
      </editor>
229
   </extension>
230

    
231
</plugin>