Statistics
| Revision:

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

History | View | Annotate | Download (7.4 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="%extension-point.name" schema="schema/org.txm.rcp.extensionpoint.backtotext.exsd"/>
5

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

    
203
</plugin>