Statistics
| Revision:

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

History | View | Annotate | Download (6.6 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="sendToTargetCommandId"
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
      </factory>
131
   </extension>
132
   <extension
133
         point="org.eclipse.ui.editors">
134
      <editor
135
            class="org.txm.progression.rcp.editors.ProgressionEditor"
136
            default="false"
137
            icon="icons/functions/progression.png"
138
            id="org.txm.progression.core.functions.Progression"
139
            name="Progression">
140
      </editor>
141
   </extension>
142
   <extension
143
         point="org.eclipse.core.expressions.definitions">
144
      <definition
145
            id="OneProgressionSelected">
146
         <with
147
               variable="selection">
148
            <iterate
149
                  ifEmpty="false"
150
                  operator="and">
151
               <instanceof
152
                     value="org.txm.progression.core.functions.Progression">
153
               </instanceof>
154
            </iterate>
155
         </with>
156
      </definition>
157
      <definition
158
            id="ProgressionEditorActive">
159
         <with
160
               variable="activePart">
161
            <instanceof
162
                  value="org.txm.progression.rcp.editors.ProgressionEditor">
163
            </instanceof>
164
         </with>
165
      </definition>
166
   </extension>
167
   <extension
168
         point="org.eclipse.ui.handlers">
169
      <handler
170
            class="org.txm.progression.rcp.handlers.SendProgressionTo"
171
            commandId="org.txm.index.rcp.handlers.ComputeIndex">
172
         <activeWhen>
173
            <and>
174
               <reference
175
                     definitionId="ProgressionEditorActive">
176
               </reference>
177
               <reference
178
                     definitionId="SendSelectionContextNotActive">
179
               </reference>
180
            </and>
181
         </activeWhen>
182
      </handler>
183
   </extension>
184

    
185
</plugin>