Statistics
| Revision:

root / tmp / org.txm.progression.rcp / plugin.xml @ 1167

History | View | Annotate | Download (6.7 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.preferencePages">
6
      <page
7
            category="org.txm.rcp.preferences.UserPreferencePage"
8
            class="org.txm.progression.rcp.preferences.ProgressionPreferencePage"
9
            id="org.txm.progression.rcp.preferences.ProgressionPreferencePage"
10
            name="%page.name">
11
      </page>
12
   </extension>
13
   <extension
14
         point="org.eclipse.ui.commands">
15
      <command
16
            categoryId="org.txm.rcp.category.txm"
17
            defaultHandler="org.txm.progression.rcp.handlers.ComputeProgression"
18
            id="org.txm.progression.rcp.handlers.ComputeProgression"
19
            name="%command.name"
20
            returnTypeId="org.txm.progression.core.functions.Progression">
21
      </command>
22
      <command
23
            id="org.txm.progression.rcp.commands.SendToProgression"
24
            name="%command.name.3">
25
         <commandParameter
26
               id="sendToTargetCommandId"
27
               name="%commandParameter.name"
28
               optional="true">
29
         </commandParameter>
30
      </command>
31
   </extension>
32
   <extension
33
         point="org.eclipse.ui.menus">
34
      <menuContribution
35
            allPopups="false"
36
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
37
         <command
38
               commandId="org.txm.progression.rcp.handlers.ComputeProgression"
39
               icon="icons/functions/progression.png"
40
               style="push"
41
               tooltip="%command.tooltip">
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.cooccurrence.rcp.handlers.ComputeCooccurrences">
54
         <command
55
               commandId="org.txm.progression.rcp.handlers.ComputeProgression"
56
               icon="icons/functions/progression.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="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences">
71
         <command
72
               commandId="org.txm.progression.rcp.handlers.ComputeProgression"
73
               icon="icons/functions/progression.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.index.rcp.editors.IndexEditor">
88
         <command
89
               commandId="org.txm.progression.rcp.handlers.ComputeProgression"
90
               icon="icons/functions/progression.png"
91
               label="%command.name.3"
92
               style="push">
93
         </command>
94
      </menuContribution>
95
      <menuContribution
96
            locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
97
         <command
98
               commandId="org.txm.progression.rcp.handlers.ComputeProgression"
99
               icon="icons/functions/progression.png"
100
               label="%command.name.3"
101
               style="push">
102
         </command>
103
      </menuContribution>
104
      <menuContribution
105
            locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
106
         <command
107
               commandId="org.txm.progression.rcp.handlers.ComputeProgression"
108
               icon="icons/functions/progression.png"
109
               label="%command.name.3"
110
               style="push">
111
         </command>
112
      </menuContribution>
113
   </extension>
114
   <extension
115
         point="org.txm.chartsengine.eventcallback">
116
      <EventCallBack
117
            chartsEngineName="jfreechart_charts_engine"
118
            class="org.txm.progression.rcp.chartsengine.events.ProgressionEventCallBack"
119
            resultDataClass="org.txm.progression.core.functions.Progression">
120
      </EventCallBack>
121
   </extension>
122
   <extension
123
         point="org.eclipse.core.runtime.adapters">
124
      <factory
125
            adaptableType="org.txm.progression.core.functions.Progression"
126
            class="org.txm.progression.rcp.adapters.ProgressionAdapterFactory">
127
         <adapter
128
               type="org.eclipse.ui.model.IWorkbenchAdapter">
129
         </adapter>
130
         <adapter
131
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
132
         </adapter>
133
      </factory>
134
   </extension>
135
   <extension
136
         point="org.eclipse.ui.editors">
137
      <editor
138
            class="org.txm.progression.rcp.editors.ProgressionEditor"
139
            default="false"
140
            icon="icons/functions/progression.png"
141
            id="org.txm.progression.core.functions.Progression"
142
            name="%editor.name">
143
      </editor>
144
   </extension>
145
   <extension
146
         point="org.eclipse.core.expressions.definitions">
147
      <definition
148
            id="OneProgressionSelected">
149
         <with
150
               variable="selection">
151
            <iterate
152
                  ifEmpty="false"
153
                  operator="and">
154
               <instanceof
155
                     value="org.txm.progression.core.functions.Progression">
156
               </instanceof>
157
            </iterate>
158
         </with>
159
      </definition>
160
      <definition
161
            id="ProgressionEditorActive">
162
         <with
163
               variable="activePart">
164
            <instanceof
165
                  value="org.txm.progression.rcp.editors.ProgressionEditor">
166
            </instanceof>
167
         </with>
168
      </definition>
169
   </extension>
170
   <extension
171
         point="org.eclipse.ui.handlers">
172
      <handler
173
            class="org.txm.progression.rcp.handlers.SendProgressionTo"
174
            commandId="org.txm.index.rcp.handlers.ComputeIndex">
175
         <activeWhen>
176
            <and>
177
               <reference
178
                     definitionId="ProgressionEditorActive">
179
               </reference>
180
               <reference
181
                     definitionId="SendSelectionContextNotActive">
182
               </reference>
183
            </and>
184
         </activeWhen>
185
      </handler>
186
   </extension>
187

    
188
</plugin>