root / TXM / trunk / org.txm.cooccurrence.rcp / plugin.xml @ 3368
Historique | Voir | Annoter | Télécharger (7,11 ko)
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<?eclipse version="3.4"?>
|
3 |
<plugin>
|
4 |
<extension
|
5 |
point="org.eclipse.ui.commands"> |
6 |
<command
|
7 |
categoryId="org.txm.rcp.category.txm" |
8 |
defaultHandler="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
9 |
id="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
10 |
name="%command.name" |
11 |
returnTypeId="org.txm.cooccurrence.core.functions.Cooccurrence"> |
12 |
</command>
|
13 |
<command
|
14 |
defaultHandler="org.txm.cooccurrence.rcp.handlers.CopyLines" |
15 |
id="org.txm.cooccurrence.rcp.handlers.CopyLines" |
16 |
name="Copy"> |
17 |
</command>
|
18 |
</extension>
|
19 |
<extension
|
20 |
point="org.eclipse.ui.preferencePages"> |
21 |
<page
|
22 |
category="org.txm.rcp.preferences.UserPreferencePage" |
23 |
class="org.txm.cooccurrence.rcp.preferences.CoocPreferencePage" |
24 |
id="org.txm.cooccurrence.rcp.preferences.CoocPreferencePage" |
25 |
name="%page.name"> |
26 |
</page>
|
27 |
</extension>
|
28 |
<extension
|
29 |
point="org.eclipse.core.runtime.adapters"> |
30 |
<factory
|
31 |
adaptableType="org.txm.cooccurrence.core.functions.Cooccurrence" |
32 |
class="org.txm.cooccurrence.rcp.adapters.CooccurrenceAdapterFactory"> |
33 |
<adapter
|
34 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
35 |
</adapter>
|
36 |
<adapter
|
37 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
38 |
</adapter>
|
39 |
</factory>
|
40 |
</extension>
|
41 |
<extension
|
42 |
point="org.eclipse.ui.menus"> |
43 |
<menuContribution
|
44 |
allPopups="false" |
45 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.concordance.rcp.handlers.ComputeConcordance"> |
46 |
<command
|
47 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
48 |
icon="icons/cooccurrences.png" |
49 |
style="push" |
50 |
tooltip="%command.name.4"> |
51 |
<visibleWhen
|
52 |
checkEnabled="false"> |
53 |
<or>
|
54 |
<reference
|
55 |
definitionId="OneCorpusSelected"> |
56 |
</reference>
|
57 |
<reference
|
58 |
definitionId="OneConcordanceSelected"> |
59 |
</reference>
|
60 |
</or>
|
61 |
</visibleWhen>
|
62 |
</command>
|
63 |
</menuContribution>
|
64 |
<menuContribution
|
65 |
locationURI="menu:menu.tools?after=org.txm.concordance.rcp.handlers.ComputeConcordance"> |
66 |
<command
|
67 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
68 |
icon="icons/cooccurrences.png" |
69 |
style="push" |
70 |
tooltip="%command.name.4"> |
71 |
<visibleWhen
|
72 |
checkEnabled="false"> |
73 |
<or>
|
74 |
<reference
|
75 |
definitionId="OneCorpusSelected"> |
76 |
</reference>
|
77 |
<reference
|
78 |
definitionId="OneConcordanceSelected"> |
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.concordance.rcp.handlers.ComputeConcordance"> |
87 |
<command
|
88 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
89 |
icon="icons/cooccurrences.png" |
90 |
label="%command.name.4" |
91 |
style="push" |
92 |
tooltip="%command.tooltip"> |
93 |
<visibleWhen
|
94 |
checkEnabled="false"> |
95 |
<or>
|
96 |
<reference
|
97 |
definitionId="OneCorpusSelected"> |
98 |
</reference>
|
99 |
<reference
|
100 |
definitionId="OneConcordanceSelected"> |
101 |
</reference>
|
102 |
</or>
|
103 |
</visibleWhen>
|
104 |
</command>
|
105 |
</menuContribution>
|
106 |
<menuContribution
|
107 |
locationURI="popup:org.txm.index.rcp.editors.IndexEditor"> |
108 |
<command
|
109 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
110 |
icon="icons/cooccurrences.png" |
111 |
label="%command.name.4" |
112 |
style="push" |
113 |
tooltip="%command.name.4"> |
114 |
</command>
|
115 |
</menuContribution>
|
116 |
<menuContribution
|
117 |
locationURI="popup:org.txm.index.rcp.editors.PartitionIndexEditor"> |
118 |
<command
|
119 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
120 |
icon="icons/cooccurrences.png" |
121 |
label="%command.name.4" |
122 |
style="push" |
123 |
tooltip="%command.name.4"> |
124 |
</command>
|
125 |
</menuContribution>
|
126 |
<menuContribution
|
127 |
locationURI="popup:org.txm.index.rcp.editors.LexiconEditor"> |
128 |
<command
|
129 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
130 |
icon="icons/cooccurrences.png" |
131 |
label="%command.name.4" |
132 |
style="push" |
133 |
tooltip="%command.name.4"> |
134 |
</command>
|
135 |
</menuContribution>
|
136 |
<menuContribution
|
137 |
locationURI="popup:org.txm.cooccurrence.rcp.editors.CooccurrencesEditor"> |
138 |
<command
|
139 |
commandId="org.txm.cooccurrence.rcp.handlers.CopyLines" |
140 |
icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/copy_edit.png" |
141 |
label="Copy" |
142 |
style="push"> |
143 |
</command>
|
144 |
</menuContribution>
|
145 |
</extension>
|
146 |
<extension
|
147 |
point="org.eclipse.ui.editors"> |
148 |
<editor
|
149 |
class="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor" |
150 |
default="false" |
151 |
icon="icons/cooccurrences.png" |
152 |
id="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor" |
153 |
name="%editor.name"> |
154 |
</editor>
|
155 |
</extension>
|
156 |
<extension
|
157 |
point="org.eclipse.core.expressions.definitions"> |
158 |
<definition
|
159 |
id="OneCooccurrenceSelected"> |
160 |
<with
|
161 |
variable="selection"> |
162 |
<iterate
|
163 |
ifEmpty="false" |
164 |
operator="and"> |
165 |
<instanceof
|
166 |
value="org.txm.cooccurrence.core.functions.Cooccurrence"> |
167 |
</instanceof>
|
168 |
</iterate>
|
169 |
</with>
|
170 |
</definition>
|
171 |
<definition
|
172 |
id="CooccurrenceEditorActive"> |
173 |
<with
|
174 |
variable="activePart"> |
175 |
<instanceof
|
176 |
value="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor"> |
177 |
</instanceof>
|
178 |
</with>
|
179 |
</definition>
|
180 |
</extension>
|
181 |
<extension
|
182 |
point="org.eclipse.ui.handlers"> |
183 |
<handler
|
184 |
class="org.txm.cooccurrence.rcp.handlers.SendCooccurrenceTo" |
185 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"> |
186 |
<activeWhen>
|
187 |
<and>
|
188 |
<reference
|
189 |
definitionId="CooccurrenceEditorActive"> |
190 |
</reference>
|
191 |
<reference
|
192 |
definitionId="SendSelectionContextNotActive"> |
193 |
</reference>
|
194 |
</and></activeWhen> |
195 |
</handler>
|
196 |
</extension>
|
197 |
|
198 |
</plugin>
|