root / tmp / org.txm.cooccurrence.rcp / plugin.xml @ 2558
History | View | Annotate | Download (6.3 kB)
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 |
<visibleWhen
|
46 |
checkEnabled="false"> |
47 |
<or>
|
48 |
<reference
|
49 |
definitionId="OneCorpusSelected"> |
50 |
</reference>
|
51 |
<reference
|
52 |
definitionId="OneConcordanceSelected"> |
53 |
</reference>
|
54 |
</or>
|
55 |
</visibleWhen>
|
56 |
</command>
|
57 |
</menuContribution>
|
58 |
<menuContribution
|
59 |
locationURI="menu:menu.tools?after=org.txm.concordance.rcp.handlers.ComputeConcordance"> |
60 |
<command
|
61 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
62 |
icon="icons/cooccurrences.png" |
63 |
style="push"> |
64 |
<visibleWhen
|
65 |
checkEnabled="false"> |
66 |
<or>
|
67 |
<reference
|
68 |
definitionId="OneCorpusSelected"> |
69 |
</reference>
|
70 |
<reference
|
71 |
definitionId="OneConcordanceSelected"> |
72 |
</reference>
|
73 |
</or>
|
74 |
</visibleWhen>
|
75 |
</command>
|
76 |
</menuContribution>
|
77 |
<menuContribution
|
78 |
allPopups="false" |
79 |
locationURI="toolbar:org.txm.rcp.toolbartools?after=org.txm.concordance.rcp.handlers.ComputeConcordance"> |
80 |
<command
|
81 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
82 |
icon="icons/cooccurrences.png" |
83 |
style="push" |
84 |
tooltip="%command.tooltip"> |
85 |
<visibleWhen
|
86 |
checkEnabled="false"> |
87 |
<or>
|
88 |
<reference
|
89 |
definitionId="OneCorpusSelected"> |
90 |
</reference>
|
91 |
<reference
|
92 |
definitionId="OneConcordanceSelected"> |
93 |
</reference>
|
94 |
</or>
|
95 |
</visibleWhen>
|
96 |
</command>
|
97 |
</menuContribution>
|
98 |
<menuContribution
|
99 |
locationURI="popup:org.txm.index.rcp.editors.IndexEditor"> |
100 |
<command
|
101 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
102 |
icon="icons/cooccurrences.png" |
103 |
label="%command.name.4" |
104 |
style="push"> |
105 |
</command>
|
106 |
</menuContribution>
|
107 |
<menuContribution
|
108 |
locationURI="popup:org.txm.index.rcp.editors.PartitionIndexEditor"> |
109 |
<command
|
110 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
111 |
icon="icons/cooccurrences.png" |
112 |
label="%command.name.4" |
113 |
style="push"> |
114 |
</command>
|
115 |
</menuContribution>
|
116 |
<menuContribution
|
117 |
locationURI="popup:org.txm.index.rcp.editors.LexiconEditor"> |
118 |
<command
|
119 |
commandId="org.txm.cooccurrence.rcp.handlers.ComputeCooccurrences" |
120 |
icon="icons/cooccurrences.png" |
121 |
label="%command.name.4" |
122 |
style="push"> |
123 |
</command>
|
124 |
</menuContribution>
|
125 |
</extension>
|
126 |
<extension
|
127 |
point="org.eclipse.ui.editors"> |
128 |
<editor
|
129 |
class="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor" |
130 |
default="false" |
131 |
icon="icons/cooccurrences.png" |
132 |
id="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor" |
133 |
name="%editor.name"> |
134 |
</editor>
|
135 |
</extension>
|
136 |
<extension
|
137 |
point="org.eclipse.core.expressions.definitions"> |
138 |
<definition
|
139 |
id="OneCooccurrenceSelected"> |
140 |
<with
|
141 |
variable="selection"> |
142 |
<iterate
|
143 |
ifEmpty="false" |
144 |
operator="and"> |
145 |
<instanceof
|
146 |
value="org.txm.cooccurrence.core.functions.Cooccurrence"> |
147 |
</instanceof>
|
148 |
</iterate>
|
149 |
</with>
|
150 |
</definition>
|
151 |
<definition
|
152 |
id="CooccurrenceEditorActive"> |
153 |
<with
|
154 |
variable="activePart"> |
155 |
<instanceof
|
156 |
value="org.txm.cooccurrence.rcp.editors.CooccurrencesEditor"> |
157 |
</instanceof>
|
158 |
</with>
|
159 |
</definition>
|
160 |
</extension>
|
161 |
<extension
|
162 |
point="org.eclipse.ui.handlers"> |
163 |
<handler
|
164 |
class="org.txm.cooccurrence.rcp.handlers.SendCooccurrenceTo" |
165 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"> |
166 |
<activeWhen>
|
167 |
<and>
|
168 |
<reference
|
169 |
definitionId="CooccurrenceEditorActive"> |
170 |
</reference>
|
171 |
<reference
|
172 |
definitionId="SendSelectionContextNotActive"> |
173 |
</reference>
|
174 |
</and></activeWhen> |
175 |
</handler>
|
176 |
</extension>
|
177 |
|
178 |
</plugin>
|