Statistics
| Revision:

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

History | View | Annotate | Download (7.3 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.handlers.ComputeConcordance"
106
               icon="icons/concordance.png"
107
               label="%command.name.1"
108
               style="push">
109
         </command>
110
      </menuContribution>
111
      <menuContribution
112
            locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
113
         <command
114
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
115
               icon="icons/concordance.png"
116
               label="%command.name.1"
117
               style="push">
118
         </command>
119
      </menuContribution>
120
      <menuContribution
121
            locationURI="popup:org.txm.cooccurrence.rcp.editors.CooccurrencesEditor">
122
         <command
123
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
124
               icon="icons/concordance.png"
125
               label="%command.name.1"
126
               style="push">
127
         </command>
128
      </menuContribution>
129
      <menuContribution
130
            locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
131
         <command
132
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
133
               icon="icons/concordance.png"
134
               label="%command.name.1"
135
               style="push">
136
         </command>
137
      </menuContribution>
138
      <menuContribution
139
            locationURI="popup:org.txm.referencer.rcp.editors.ReferencerEditor">
140
         <command
141
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
142
               icon="icons/concordance.png"
143
               label="%command.name.1"
144
               style="push">
145
         </command>
146
      </menuContribution>
147
      <menuContribution
148
            locationURI="popup:org.txm.edition.rcp.editors.SynopticEditionEditor">
149
         <command
150
               commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"
151
               icon="icons/concordance.png"
152
               label="%command.name.1"
153
               style="push">
154
         </command>
155
      </menuContribution>
156
   </extension>
157
   <extension
158
         point="org.eclipse.ui.commands">
159
      <command
160
            categoryId="org.txm.rcp.category.txm"
161
            defaultHandler="org.txm.concordance.rcp.handlers.ComputeConcordance"
162
            id="org.txm.concordance.rcp.handlers.ComputeConcordance"
163
            name="%command.name"
164
            returnTypeId="org.txm.concordance.core.functions.Concordance">
165
         <commandParameter
166
               id="org.txm.core.results.TXMParameters"
167
               name="TXM Parameter"
168
               optional="true">
169
         </commandParameter>
170
      </command>
171
      <command
172
            defaultHandler="org.txm.concordance.rcp.handlers.DeleteLines"
173
            id="org.txm.concordance.rcp.handlers.DeleteLines"
174
            name="%command.name.37">
175
      </command>
176
   </extension>
177
   <extension
178
         point="org.eclipse.ui.preferencePages">
179
      <page
180
            category="org.txm.rcp.preferences.UserPreferencePage"
181
            class="org.txm.concordance.rcp.preferences.ConcordancePreferencePage"
182
            id="ConcordancePreferencePage"
183
            name="%page.name">
184
      </page>
185
   </extension>
186
   <extension
187
         point="org.eclipse.ui.editors">
188
      <editor
189
            class="org.txm.concordance.rcp.editors.ConcordanceEditor"
190
            default="false"
191
            icon="icons/concordance.png"
192
            id="org.txm.concordance.rcp.editors.ConcordanceEditor"
193
            name="%editor.name">
194
      </editor>
195
   </extension>
196

    
197
</plugin>