root / tmp / org.txm.index.rcp / plugin.xml @ 626
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.menus"> |
6 |
|
7 |
<menuContribution
|
8 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
9 |
<command
|
10 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
11 |
icon="icons/lexicon.png" |
12 |
style="push"> |
13 |
<visibleWhen
|
14 |
checkEnabled="false"> |
15 |
<reference
|
16 |
definitionId="OneCorpusSelected"> |
17 |
</reference>
|
18 |
</visibleWhen>
|
19 |
</command>
|
20 |
<command
|
21 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
22 |
icon="icons/index.png" |
23 |
style="push"> |
24 |
<visibleWhen
|
25 |
checkEnabled="false"> |
26 |
<or>
|
27 |
<reference
|
28 |
definitionId="OnePartitionSelected"> |
29 |
</reference>
|
30 |
<reference
|
31 |
definitionId="OneCorpusSelected"> |
32 |
</reference>
|
33 |
</or>
|
34 |
</visibleWhen>
|
35 |
</command>
|
36 |
</menuContribution>
|
37 |
<menuContribution
|
38 |
locationURI="menu:menu.tools"> |
39 |
<command
|
40 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
41 |
icon="icons/lexicon.png" |
42 |
style="push"> |
43 |
<visibleWhen
|
44 |
checkEnabled="false"> |
45 |
<reference
|
46 |
definitionId="OneCorpusSelected"> |
47 |
</reference>
|
48 |
</visibleWhen>
|
49 |
</command>
|
50 |
<command
|
51 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
52 |
icon="icons/index.png" |
53 |
style="push"> |
54 |
<visibleWhen
|
55 |
checkEnabled="false"> |
56 |
<or>
|
57 |
<reference
|
58 |
definitionId="OnePartitionSelected"> |
59 |
</reference>
|
60 |
<reference
|
61 |
definitionId="OneCorpusSelected"> |
62 |
</reference>
|
63 |
</or>
|
64 |
</visibleWhen>
|
65 |
</command>
|
66 |
</menuContribution>
|
67 |
<menuContribution
|
68 |
allPopups="false" |
69 |
locationURI="toolbar:org.txm.rcp.toolbartools"> |
70 |
<command
|
71 |
commandId="org.txm.index.rcp.handlers.ComputeLexicon" |
72 |
icon="icons/lexicon.png" |
73 |
style="push"> |
74 |
<visibleWhen
|
75 |
checkEnabled="false"> |
76 |
<reference
|
77 |
definitionId="OneCorpusSelected"> |
78 |
</reference>
|
79 |
</visibleWhen>
|
80 |
</command>
|
81 |
<command
|
82 |
commandId="org.txm.index.rcp.handlers.ComputeIndex" |
83 |
icon="icons/index.png" |
84 |
style="push" |
85 |
tooltip="%command.tooltip"> |
86 |
<visibleWhen
|
87 |
checkEnabled="false"> |
88 |
<or>
|
89 |
<reference
|
90 |
definitionId="OnePartitionSelected"> |
91 |
</reference>
|
92 |
<reference
|
93 |
definitionId="OneCorpusSelected"> |
94 |
</reference>
|
95 |
</or>
|
96 |
</visibleWhen>
|
97 |
</command>
|
98 |
</menuContribution>
|
99 |
<menuContribution
|
100 |
locationURI="popup:IndexEditorContextMenu"> |
101 |
<command
|
102 |
commandId="org.txm.rcp.commands.link.ToConcordance" |
103 |
style="push"> |
104 |
</command>
|
105 |
<command
|
106 |
commandId="org.txm.rcp.commands.link.IndexToCooccurrence" |
107 |
style="push"> |
108 |
</command>
|
109 |
<command
|
110 |
commandId="org.txm.rcp.commands.link.ToProgression" |
111 |
style="push"> |
112 |
</command>
|
113 |
</menuContribution>
|
114 |
|
115 |
</extension>
|
116 |
<extension
|
117 |
point="org.eclipse.ui.editors"> |
118 |
<editor
|
119 |
class="org.txm.index.rcp.editors.IndexEditor" |
120 |
default="false" |
121 |
icon="icons/index.png" |
122 |
id="org.txm.index.rcp.editors.IndexEditor" |
123 |
name="%editor.name"> |
124 |
</editor>
|
125 |
<editor
|
126 |
class="org.txm.index.rcp.editors.DictionnaryEditor" |
127 |
default="false" |
128 |
icon="icons/lexicon.png" |
129 |
id="org.txm.index.rcp.editors.DictionnaryEditor" |
130 |
name="Lexicon"> |
131 |
</editor>
|
132 |
</extension>
|
133 |
<extension
|
134 |
point="org.eclipse.core.runtime.adapters"> |
135 |
<factory
|
136 |
adaptableType="org.txm.index.core.functions.Index" |
137 |
class="org.txm.index.rcp.adapters.IndexAdapterFactory"> |
138 |
<adapter
|
139 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
140 |
</adapter>
|
141 |
</factory>
|
142 |
<factory
|
143 |
adaptableType="org.txm.lexicon.core.functions.Lexicon" |
144 |
class="org.txm.index.rcp.adapters.LexiconAdapterFactory"> |
145 |
<adapter
|
146 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
147 |
</adapter>
|
148 |
</factory>
|
149 |
</extension>
|
150 |
<extension
|
151 |
point="org.eclipse.ui.commands"> |
152 |
|
153 |
<command
|
154 |
categoryId="org.txm.rcp.category.txm" |
155 |
defaultHandler="org.txm.index.rcp.handlers.ComputeIndex" |
156 |
id="org.txm.index.rcp.handlers.ComputeIndex" |
157 |
name="%command.name"> |
158 |
</command>
|
159 |
<command
|
160 |
categoryId="org.txm.rcp.category.txm" |
161 |
defaultHandler="org.txm.index.rcp.handlers.ComputeLexicon" |
162 |
id="org.txm.index.rcp.handlers.ComputeLexicon" |
163 |
name="ComputeLexicon"> |
164 |
</command>
|
165 |
</extension>
|
166 |
<extension
|
167 |
point="org.eclipse.core.expressions.definitions"> |
168 |
<definition
|
169 |
id="OneIndexSelected"> |
170 |
<with
|
171 |
variable="selection"> |
172 |
<iterate
|
173 |
ifEmpty="false" |
174 |
operator="and"> |
175 |
<instanceof
|
176 |
value="org.txm.index.core.functions.Index"> |
177 |
</instanceof>
|
178 |
</iterate>
|
179 |
</with>
|
180 |
</definition>
|
181 |
</extension>
|
182 |
<extension
|
183 |
point="org.txm.statengine.r.rcp.sendtor"> |
184 |
<sendtorcommand></sendtorcommand> |
185 |
</extension>
|
186 |
<extension
|
187 |
point="org.eclipse.ui.preferencePages"> |
188 |
<page
|
189 |
class="org.txm.index.rcp.preferences.IndexPreferencesPage" |
190 |
id="org.txm.index.rcp.preferences.IndexPreferencesPage" |
191 |
name="Index"> |
192 |
</page>
|
193 |
</extension>
|
194 |
|
195 |
</plugin>
|