Statistics
| Revision:

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

History | View | Annotate | Download (6.3 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.commands.SendToProgression"
90
               icon="icons/functions/progression.png"
91
               label="%command.name.3"
92
               style="push">
93
            <parameter
94
                  name="sendToTargetCommandId"
95
                  value="org.txm.progression.rcp.handlers.ComputeProgression">
96
            </parameter>
97
         </command>
98
      </menuContribution>
99
      <menuContribution
100
            locationURI="popup:org.txm.index.rcp.editors.DictionnaryEditor">
101
         <command
102
               commandId="org.txm.progression.rcp.commands.SendToProgression"
103
               icon="icons/functions/progression.png"
104
               label="%command.name.3"
105
               style="push">
106
            <parameter
107
                  name="sendToTargetCommandId"
108
                  value="org.txm.progression.rcp.handlers.ComputeProgression">
109
            </parameter>
110
         </command>
111
      </menuContribution>
112
      <menuContribution
113
            locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor">
114
         <command
115
               commandId="org.txm.progression.rcp.commands.SendToProgression"
116
               icon="icons/functions/progression.png"
117
               label="%command.name.3"
118
               style="push">
119
            <parameter
120
                  name="sendToTargetCommandId"
121
                  value="org.txm.progression.rcp.handlers.ComputeProgression">
122
            </parameter>
123
         </command>
124
      </menuContribution>
125
   </extension>
126
   <extension
127
         point="org.txm.chartsengine.eventcallback">
128
      <EventCallBack
129
            chartsEngineName="jfreechart_charts_engine"
130
            class="org.txm.progression.rcp.chartsengine.events.ProgressionEventCallBack"
131
            resultDataClass="org.txm.progression.core.functions.Progression">
132
      </EventCallBack>
133
   </extension>
134
   <extension
135
         point="org.eclipse.core.runtime.adapters">
136
      <factory
137
            adaptableType="org.txm.progression.core.functions.Progression"
138
            class="org.txm.progression.rcp.adapters.ProgressionAdapterFactory">
139
         <adapter
140
               type="org.eclipse.ui.model.IWorkbenchAdapter">
141
         </adapter>
142
      </factory>
143
   </extension>
144
   <extension
145
         point="org.eclipse.ui.editors">
146
      <editor
147
            class="org.txm.progression.rcp.editors.ProgressionEditor"
148
            default="false"
149
            icon="icons/functions/progression.png"
150
            id="org.txm.progression.core.functions.Progression"
151
            name="Progression">
152
      </editor>
153
   </extension>
154
   <extension
155
         point="org.eclipse.core.expressions.definitions">
156
      <definition
157
            id="OneProgressionSelected">
158
         <with
159
               variable="selection">
160
            <iterate
161
                  ifEmpty="false"
162
                  operator="and">
163
               <instanceof
164
                     value="org.txm.progression.core.functions.Progression">
165
               </instanceof>
166
            </iterate>
167
         </with>
168
      </definition>
169
   </extension>
170

    
171
</plugin>