Statistics
| Revision:

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

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

    
181
</plugin>