root / TXM / trunk / org.txm.specificities.rcp / plugin.xml @ 3382
Historique | Voir | Annoter | Télécharger (7,26 ko)
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 |
<command
|
38 |
defaultHandler="org.txm.specificities.rcp.handlers.CopyLines" |
39 |
id="org.txm.specificities.rcp.handlers.CopyLines" |
40 |
name="Copy"> |
41 |
</command>
|
42 |
</extension>
|
43 |
<extension
|
44 |
point="org.eclipse.ui.menus"> |
45 |
<menuContribution
|
46 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.rcp.corporaview.tools.stat"> |
47 |
<command
|
48 |
commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities" |
49 |
icon="icons/functions/specificities.png" |
50 |
style="push"> |
51 |
<visibleWhen
|
52 |
checkEnabled="false"> |
53 |
<or>
|
54 |
<reference
|
55 |
definitionId="OnePartitionSelected"> |
56 |
</reference>
|
57 |
<reference
|
58 |
definitionId="OneSubCorpusSelected"> |
59 |
</reference>
|
60 |
<reference
|
61 |
definitionId="OneLexicalTableSelected"> |
62 |
</reference>
|
63 |
<reference
|
64 |
definitionId="OnePartitionIndexSelected"> |
65 |
</reference>
|
66 |
</or>
|
67 |
</visibleWhen>
|
68 |
</command>
|
69 |
</menuContribution>
|
70 |
<menuContribution
|
71 |
locationURI="menu:menu.tools?after=menu.tools.separator.stats"> |
72 |
<command
|
73 |
commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities" |
74 |
icon="icons/functions/specificities.png" |
75 |
style="push"> |
76 |
<visibleWhen
|
77 |
checkEnabled="false"> |
78 |
<or>
|
79 |
<reference
|
80 |
definitionId="OnePartitionSelected"> |
81 |
</reference>
|
82 |
<reference
|
83 |
definitionId="OneSubCorpusSelected"> |
84 |
</reference>
|
85 |
<reference
|
86 |
definitionId="OneLexicalTableSelected"> |
87 |
</reference>
|
88 |
<reference
|
89 |
definitionId="OnePartitionIndexSelected"> |
90 |
</reference>
|
91 |
</or>
|
92 |
</visibleWhen>
|
93 |
</command>
|
94 |
</menuContribution>
|
95 |
<menuContribution
|
96 |
allPopups="false" |
97 |
locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.rcp.toolbartools.stats"> |
98 |
<command
|
99 |
commandId="org.txm.specificities.rcp.handlers.ComputeSpecifities" |
100 |
icon="icons/functions/specificities.png" |
101 |
style="push"> |
102 |
<visibleWhen
|
103 |
checkEnabled="false"> |
104 |
<or>
|
105 |
<reference
|
106 |
definitionId="OnePartitionSelected"> |
107 |
</reference>
|
108 |
<reference
|
109 |
definitionId="OneSubCorpusSelected"> |
110 |
</reference>
|
111 |
<reference
|
112 |
definitionId="OneLexicalTableSelected"> |
113 |
</reference>
|
114 |
<reference
|
115 |
definitionId="OnePartitionIndexSelected"> |
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 |
<command
|
129 |
commandId="org.txm.specificities.rcp.handlers.CopyLines" |
130 |
icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/copy_edit.png" |
131 |
label="Copy" |
132 |
style="push"> |
133 |
</command>
|
134 |
</menuContribution>
|
135 |
</extension>
|
136 |
<extension
|
137 |
point="org.eclipse.core.runtime.adapters"> |
138 |
<factory
|
139 |
adaptableType="org.txm.specificities.core.functions.Specificities" |
140 |
class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory"> |
141 |
<adapter
|
142 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
143 |
</adapter>
|
144 |
<adapter
|
145 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
146 |
</adapter>
|
147 |
</factory>
|
148 |
<factory
|
149 |
adaptableType="org.txm.specificities.core.functions.SpecificitiesSelection" |
150 |
class="org.txm.specificities.rcp.adapters.SpecificitiesAdapterFactory"> |
151 |
<adapter
|
152 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
153 |
</adapter>
|
154 |
<adapter
|
155 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
156 |
</adapter>
|
157 |
</factory>
|
158 |
</extension>
|
159 |
<extension
|
160 |
point="org.eclipse.ui.preferencePages"> |
161 |
<page
|
162 |
category="org.txm.rcp.preferences.UserPreferencePage" |
163 |
class="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage" |
164 |
id="org.txm.specificities.rcp.preferences.SpecificitiesPreferencePage" |
165 |
name="%page.name"> |
166 |
</page>
|
167 |
</extension>
|
168 |
<extension
|
169 |
point="org.eclipse.core.expressions.definitions"> |
170 |
<definition
|
171 |
id="OneSpecificitiesResultSelected"> |
172 |
<with
|
173 |
variable="corporaSelection"> |
174 |
<iterate
|
175 |
ifEmpty="false" |
176 |
operator="and"> |
177 |
<instanceof
|
178 |
value="org.txm.functions.specificities.SpecificitesResult"> |
179 |
</instanceof>
|
180 |
</iterate>
|
181 |
</with>
|
182 |
</definition>
|
183 |
<definition
|
184 |
id="SpecificitiesEditorActive"> |
185 |
<with
|
186 |
variable="activePartId"> |
187 |
<equals
|
188 |
value="org.txm.specificities.rcp.editors.SpecificitiesEditor"> |
189 |
</equals>
|
190 |
</with>
|
191 |
</definition>
|
192 |
</extension>
|
193 |
|
194 |
</plugin>
|