Statistics
| Revision:

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

History | View | Annotate | Download (6.8 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
                  <reference
59
                        definitionId="OnePartitionIndexSelected">
60
                  </reference>
61
               </or>
62
            </visibleWhen>
63
         </command>
64
      </menuContribution>
65
      <menuContribution
66
            locationURI="menu:menu.tools?after=menu.tools.separator.stats">
67
         <command
68
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
69
               icon="icons/functions/specificities.png"
70
               style="push">
71
            <visibleWhen
72
                  checkEnabled="false">
73
               <or>
74
                  <reference
75
                        definitionId="OnePartitionSelected">
76
                  </reference>
77
                  <reference
78
                        definitionId="OneSubCorpusSelected">
79
                  </reference>
80
                  <reference
81
                        definitionId="OneLexicalTableSelected">
82
                  </reference>
83
                  <reference
84
                        definitionId="OnePartitionIndexSelected">
85
                  </reference>
86
               </or>
87
            </visibleWhen>
88
         </command>
89
      </menuContribution>
90
      <menuContribution
91
            allPopups="false"
92
            locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.rcp.toolbartools.stats">
93
         <command
94
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities"
95
               icon="icons/functions/specificities.png"
96
               style="push">
97
            <visibleWhen
98
                  checkEnabled="false">
99
               <or>
100
                  <reference
101
                        definitionId="OnePartitionSelected">
102
                  </reference>
103
                  <reference
104
                        definitionId="OneSubCorpusSelected">
105
                  </reference>
106
                  <reference
107
                        definitionId="OneLexicalTableSelected">
108
                  </reference>
109
                  <reference
110
                        definitionId="OnePartitionIndexSelected">
111
                  </reference>
112
               </or>
113
            </visibleWhen>
114
         </command>
115
      </menuContribution>
116
      <menuContribution
117
            locationURI="popup:org.txm.specificities.rcp.editors.SpecificitiesEditor">
118
         <command
119
               commandId="org.txm.specificities.rcp.handlers.ComputeSpecifictiesSelectionChart"
120
               icon="icons/functions/specificities_selection.png"
121
               style="push">
122
         </command>
123
      </menuContribution>
124
   </extension>
125
   <extension
126
         point="org.eclipse.core.runtime.adapters">
127
      <factory
128
            adaptableType="org.txm.specificities.core.functions.Specificities"
129
            class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory">
130
         <adapter
131
               type="org.eclipse.ui.model.IWorkbenchAdapter">
132
         </adapter>
133
         <adapter
134
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
135
         </adapter>
136
      </factory>
137
      <factory
138
            adaptableType="org.txm.specificities.core.functions.SpecificitiesSelection"
139
            class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory">
140
         <adapter
141
               type="org.eclipse.ui.model.IWorkbenchAdapter">
142
         </adapter>
143
         <adapter
144
               type="org.eclipse.ui.model.IWorkbenchAdapter2">
145
         </adapter>
146
      </factory>
147
   </extension>
148
   <extension
149
         point="org.eclipse.ui.preferencePages">
150
      <page
151
            category="org.txm.rcp.preferences.UserPreferencePage"
152
            class="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
153
            id="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage"
154
            name="%page.name">
155
      </page>
156
   </extension>
157
   <extension
158
         point="org.eclipse.core.expressions.definitions">
159
      <definition
160
            id="OneSpecificitiesResultSelected">
161
         <with
162
               variable="selection">
163
            <iterate
164
                  ifEmpty="false"
165
                  operator="and">
166
               <instanceof
167
                     value="org.txm.functions.specificities.SpecificitesResult">
168
               </instanceof>
169
            </iterate>
170
         </with>
171
      </definition>
172
      <definition
173
            id="SpecificitiesEditorActive">
174
         <with
175
               variable="activePartId">
176
            <equals
177
                  value="org.txm.specificities.rcp.editors.SpecificitiesEditor">
178
            </equals>
179
         </with>
180
      </definition>
181
   </extension>
182

    
183
</plugin>