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