Statistics
| Revision:

root / tmp / org.txm.specificities.rcp / plugin.xml @ 1143

History | View | Annotate | Download (7 kB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<?eclipse version="3.4"?>
3
<plugin>
4
   <extension
5
         point="org.eclipse.ui.editors">
6
      <editor
7
            class="org.txm.specificities.rcp.editors.SpecificitiesSelectionEditor"
8
            default="false"
9
            icon="icons/functions/specificities_selection.png"
10
            id="org.txm.specificities.core.functions.SpecificitiesSelection"
11
            name="%editor.name.0">
12
      </editor>
13
      <editor
14
            class="org.txm.specificities.rcp.editors.SpecificitiesEditor"
15
            default="false"
16
            icon="icons/functions/specificities.png"
17
            id="org.txm.specificities.rcp.editors.SpecificitiesEditor"
18
            name="%editor.name">
19
      </editor>
20
   </extension>
21
   <extension
22
         point="org.eclipse.ui.commands">
23
      <command
24
            categoryId="org.txm.rcp.category.txm"
25
            defaultHandler="org.txm.specificities.rcp.handlers.ComputeSpecifities"
26
            id="org.txm.specificities.rcp.handlers.ComputeSpecifities"
27
            name="%command.name"
28
            returnTypeId="org.txm.specificities.core.functions.Specificities">
29
      </command>
30
      <command
31
            categoryId="org.txm.rcp.category.txm"
32
            defaultHandler="org.txm.specificities.rcp.handlers.ComputeSpecifictiesSelectionChart"
33
            id="org.txm.specificities.rcp.handlers.ComputeSpecifictiesSelectionChart"
34
            name="%command.name.0"
35
            returnTypeId="org.txm.specificities.core.functions.SpecificitiesSelection">
36
      </command>
37
   </extension>
38
   <extension
39
         point="org.eclipse.ui.menus">
40
      <menuContribution
41
            locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.stat">
42
         <command
43
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
44
               icon="icons/functions/specificities.png"
45
               style="push">
46
            <visibleWhen
47
                  checkEnabled="false">
48
               <or>
49
                  <reference
50
                        definitionId="OnePartitionSelected">
51
                  </reference>
52
                  <reference
53
                        definitionId="OneSubCorpusSelected">
54
                  </reference>
55
                  <reference
56
                        definitionId="OneLexicalTableSelected">
57
                  </reference>
58
               </or>
59
            </visibleWhen>
60
         </command>
61
      </menuContribution>
62
      <menuContribution
63
            locationURI="menu:menu.tools">
64
         <command
65
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
66
               icon="icons/functions/specificities.png"
67
               style="push">
68
            <visibleWhen
69
                  checkEnabled="false">
70
               <or>
71
                  <reference
72
                        definitionId="OnePartitionSelected">
73
                  </reference>
74
                  <reference
75
                        definitionId="OneSubCorpusSelected">
76
                  </reference>
77
                  <reference
78
                        definitionId="OneLexicalTableSelected">
79
                  </reference>
80
               </or>
81
            </visibleWhen>
82
         </command>
83
      </menuContribution>
84
      <menuContribution
85
            allPopups="false"
86
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.referencer.rcp.handlers.ComputeReferencer">
87
         <command
88
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
89
               icon="icons/functions/specificities.png"
90
               style="push"
91
               tooltip="%command.tooltip">
92
            <visibleWhen
93
                  checkEnabled="false">
94
               <or>
95
                  <reference
96
                        definitionId="OneSubCorpusSelected">
97
                  </reference>
98
                  <reference
99
                        definitionId="OneLexicalTableSelected">
100
                  </reference>
101
               </or>
102
            </visibleWhen>
103
         </command>
104
      </menuContribution>
105
      <menuContribution
106
            allPopups="false"
107
            locationURI="toolbar:org.txm.rcp.toolbartools?after=ComputeIndexFromPartition">
108
         <command
109
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
110
               icon="icons/functions/specificities.png"
111
               style="push"
112
               tooltip="%command.tooltip">
113
            <visibleWhen
114
                  checkEnabled="false">
115
               <or>
116
                  <reference
117
                        definitionId="OnePartitionSelected">
118
                  </reference>
119
               </or>
120
            </visibleWhen>
121
         </command>
122
      </menuContribution>
123
      <menuContribution
124
            locationURI="popup:org.txm.specificities.rcp.editors.SpecificitiesEditor">
125
         <command
126
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifictiesSelectionChart"
127
               icon="icons/functions/specificities_selection.png"
128
               style="push">
129
         </command>
130
      </menuContribution>
131
   </extension>
132
   <extension
133
         point="org.eclipse.core.runtime.adapters">
134
      <factory
135
            adaptableType="org.txm.specificities.core.functions.Specificities"
136
            class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory">
137
         <adapter
138
               type="org.eclipse.ui.model.IWorkbenchAdapter">
139
         </adapter>
140
         <adapter
141
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
142
         </adapter>
143
      </factory>
144
      <factory
145
            adaptableType="org.txm.specificities.core.functions.SpecificitiesSelection"
146
            class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory">
147
         <adapter
148
               type="org.eclipse.ui.model.IWorkbenchAdapter">
149
         </adapter>
150
         <adapter
151
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
152
         </adapter>
153
      </factory>
154
   </extension>
155
   <extension
156
         point="org.eclipse.ui.preferencePages">
157
      <page
158
            category="org.txm.rcp.preferences.UserPreferencePage"
159
            class="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
160
            id="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
161
            name="%page.name">
162
      </page>
163
   </extension>
164
   <extension
165
         point="org.eclipse.core.expressions.definitions">
166
      <definition
167
            id="OneSpecificitiesResultSelected">
168
         <with
169
               variable="selection">
170
            <iterate
171
                  ifEmpty="false"
172
                  operator="and">
173
               <instanceof
174
                     value="org.txm.functions.specificities.SpecificitesResult">
175
               </instanceof>
176
            </iterate>
177
         </with>
178
      </definition>
179
      <definition
180
            id="SpecificitiesEditorActive">
181
         <with
182
               variable="activePartId">
183
            <equals
184
                  value="org.txm.specificities.rcp.editors.SpecificitiesEditor">
185
            </equals>
186
         </with>
187
      </definition>
188
   </extension>
189

    
190
</plugin>