Statistics
| Revision:

root / tmp / org.txm.edition.rcp / plugin.xml @ 1481

History | View | Annotate | Download (5.8 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.menus">
6
      <menuContribution
7
            allPopups="true"
8
            locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.rcp.toolbarcorpus.read">
9
         <command
10
               commandId="org.txm.edition.rcp.handlers.OpenEdition"
11
               icon="icons/objects/edition.png"
12
               style="push"
13
               tooltip="%command.tooltip.0">
14
            <visibleWhen
15
                  checkEnabled="false">
16
               <or>
17
                  <reference
18
                        definitionId="OneCorpusSelected">
19
                  </reference>
20
               </or>
21
            </visibleWhen>
22
         </command>
23
      </menuContribution>
24
      <menuContribution
25
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.corpus.read">
26
         <command
27
               commandId="org.txm.edition.rcp.handlers.OpenEdition"
28
               icon="icons/objects/edition.png"
29
               style="push"
30
               tooltip="%command.tooltip.0">
31
            <visibleWhen
32
                  checkEnabled="false">
33
               <or>
34
                  <reference
35
                        definitionId="OneCorpusSelected">
36
                  </reference>
37
               </or>
38
            </visibleWhen>
39
         </command>
40
      </menuContribution>
41
      <menuContribution
42
            locationURI="menu:menu.corpus?after=menu.corpus.read">
43
         <command
44
               commandId="org.txm.edition.rcp.handlers.OpenEdition"
45
               icon="icons/objects/edition.png"
46
               style="push"
47
               tooltip="%command.tooltip.0">
48
            <visibleWhen
49
                  checkEnabled="false">
50
               <or>
51
                  <reference
52
                        definitionId="OneCorpusSelected">
53
                  </reference>
54
               </or>
55
            </visibleWhen>
56
         </command>
57
      </menuContribution>
58
      <menuContribution
59
            locationURI="popup:org.txm.concordance.rcp.editors.ConcordanceEditor">
60
         <command
61
               commandId="org.txm.edition.rcp.handlers.BackToText"
62
               icon="icons/objects/edition.png"
63
               style="push">
64
         </command>
65
      </menuContribution>
66
   </extension>
67
   <extension
68
         point="org.eclipse.ui.commands">
69
      <command
70
            defaultHandler="org.txm.edition.rcp.handlers.OpenEdition"
71
            id="org.txm.edition.rcp.handlers.OpenEdition"
72
            name="%command.name">
73
      </command>
74
      <command
75
            defaultHandler="org.txm.edition.rcp.handlers.BackToText"
76
            id="org.txm.edition.rcp.handlers.BackToText"
77
            name="%command.name.0">
78
         <commandParameter
79
               id="org.txm.edition.rcp.handlers.BackToText.wordid"
80
               name="%commandParameter.name"
81
               optional="true">
82
         </commandParameter>
83
         <commandParameter
84
               id="org.txm.edition.rcp.handlers.BackToText.textid"
85
               name="%commandParameter.name.0"
86
               optional="true">
87
         </commandParameter>
88
         <commandParameter
89
               id="org.txm.edition.rcp.handlers.BackToText.corpusid"
90
               name="%commandParameter.name.1"
91
               optional="true">
92
         </commandParameter>
93
         <commandParameter
94
               id="org.txm.edition.rcp.handlers.BackToText.editionid"
95
               name="%commandParameter.name.2"
96
               optional="true">
97
         </commandParameter>
98
      </command>
99
   </extension>
100
   <extension
101
         point="org.eclipse.ui.editors">
102
      <editor
103
            class="org.txm.edition.rcp.editors.SynopticEditionEditor"
104
            default="false"
105
            icon="icons/objects/edition.png"
106
            id="org.txm.edition.rcp.editors.SynopticEditionEditor"
107
            name="%editor.name">
108
      </editor>
109
   </extension>
110
   <extension
111
         point="org.eclipse.ui.bindings">
112
      <key
113
            commandId="org.txm.edition.rcp.handlers.BackToText"
114
            contextId="org.eclipse.ui.contexts.window"
115
            schemeId="org.txm.rcp.scheme"
116
            sequence="M1+E">
117
      </key>
118
   </extension>
119
   <extension
120
         point="org.txm.rcp.extensionpoint.backtotext">
121
      <command
122
            class="org.txm.edition.rcp.handlers.BackToText"
123
            name="Synoptic">
124
      </command>
125
   </extension>
126
   <extension
127
         point="org.eclipse.ui.preferencePages">
128
      <page
129
            category="org.txm.rcp.preferences.UserPreferencePage"
130
            class="org.txm.edition.rcp.preferences.SynopticEditionPreferencePage"
131
            id="org.txm.edition.rcp.preferences.SynopticEditionPreferencePage"
132
            name="%page.name">
133
      </page>
134
   </extension>
135
   <extension
136
         point="org.eclipse.ui.handlers">
137
      <handler
138
            class="org.txm.edition.rcp.handlers.SendEditionTo"
139
            commandId="org.txm.concordance.rcp.handlers.ComputeConcordance">
140
         <activeWhen>
141
            <and>
142
               <reference
143
                     definitionId="SendSelectionContextNotActive">
144
               </reference>
145
               <reference
146
                     definitionId="EditionEditorActive">
147
               </reference>
148
            </and>
149
         </activeWhen>
150
      </handler>
151
   </extension>
152
   <extension
153
         point="org.eclipse.core.expressions.definitions">
154
      <definition
155
            id="EditionEditorActive">
156
         <with
157
               variable="activePart">
158
            <instanceof
159
                  value="org.txm.edition.rcp.editors.SynopticEditionEditor">
160
            </instanceof>
161
         </with>
162
      </definition>
163
   </extension>
164
   <extension
165
         point="org.eclipse.core.runtime.preferences">
166
      <initializer
167
            class="org.txm.edition.rcp.preferences.SynopticEditionPreferences">
168
      </initializer>
169
   </extension>
170

    
171
</plugin>