Statistics
| Revision:

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

History | View | Annotate | Download (6.1 kB)

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

    
174
</plugin>