Statistics
| Revision:

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

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

    
182
</plugin>