root / tmp / org.txm.queryindex.rcp / plugin.xml @ 3151
Historique | Voir | Annoter | Télécharger (5,5 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 |
|
7 |
<editor
|
8 |
class="org.txm.queryindex.rcp.editors.QueryIndexEditor" |
9 |
default="false" |
10 |
icon="icons/functions/QueryIndex.png" |
11 |
id="org.txm.rcp.editors.queryindex.QueryIndexEditor" |
12 |
name="%editor.name"> |
13 |
</editor>
|
14 |
</extension>
|
15 |
<extension
|
16 |
point="org.eclipse.core.runtime.adapters"> |
17 |
<factory
|
18 |
adaptableType="org.txm.queryindex.core.functions.QueryIndex" |
19 |
class="queryindexrcp.adapters.AdapterFactory"> |
20 |
<adapter
|
21 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
22 |
</adapter>
|
23 |
<adapter
|
24 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
25 |
</adapter>
|
26 |
</factory>
|
27 |
</extension>
|
28 |
|
29 |
<extension
|
30 |
point="org.eclipse.ui.commands"> |
31 |
<command
|
32 |
categoryId="org.txm.rcp.category.txm" |
33 |
defaultHandler="org.txm.queryindex.rcp.commands.function.ComputeQueryIndex" |
34 |
id="org.txm.rcp.commands.function.ComputeQueryIndex" |
35 |
name="%command.name"> |
36 |
</command>
|
37 |
</extension>
|
38 |
|
39 |
<extension
|
40 |
point="org.eclipse.ui.menus"> |
41 |
<menuContribution
|
42 |
allPopups="false" |
43 |
locationURI="toolbar:org.txm.rcp.toolbartools?before=org.txm.rcp.separator1"> |
44 |
<command
|
45 |
commandId="org.txm.rcp.commands.function.ComputeQueryIndex" |
46 |
icon="icons/functions/QueryIndex.png" |
47 |
style="push"> |
48 |
<visibleWhen
|
49 |
checkEnabled="false"> |
50 |
<or>
|
51 |
<reference
|
52 |
definitionId="OnePartitionSelected"> |
53 |
</reference>
|
54 |
<reference
|
55 |
definitionId="OneCorpusSelected"> |
56 |
</reference>
|
57 |
</or>
|
58 |
</visibleWhen>
|
59 |
</command>
|
60 |
</menuContribution>
|
61 |
<menuContribution
|
62 |
allPopups="false" |
63 |
locationURI="popup:org.txm.rcp.views.CorporaView"> |
64 |
<command
|
65 |
commandId="org.txm.rcp.commands.function.ComputeQueryIndex" |
66 |
icon="icons/functions/QueryIndex.png" |
67 |
style="push"> |
68 |
<visibleWhen
|
69 |
checkEnabled="false"> |
70 |
<or>
|
71 |
<reference
|
72 |
definitionId="OnePartitionSelected"> |
73 |
</reference>
|
74 |
<reference
|
75 |
definitionId="OneCorpusSelected"> |
76 |
</reference>
|
77 |
</or>
|
78 |
</visibleWhen>
|
79 |
</command>
|
80 |
<command
|
81 |
commandId="org.txm.rcp.commands.function.ComputeQueryIndexOfTexts" |
82 |
icon="icons/functions/QueryIndexOfTexts.png" |
83 |
style="push"> |
84 |
<visibleWhen
|
85 |
checkEnabled="false"> |
86 |
<or>
|
87 |
<reference
|
88 |
definitionId="OneCorpusSelected"> |
89 |
</reference>
|
90 |
</or>
|
91 |
</visibleWhen>
|
92 |
</command>
|
93 |
</menuContribution>
|
94 |
<menuContribution
|
95 |
locationURI="menu:menu.tools"> |
96 |
<command
|
97 |
commandId="org.txm.rcp.commands.function.ComputeQueryIndex" |
98 |
icon="icons/functions/QueryIndex.png" |
99 |
style="push"> |
100 |
<visibleWhen
|
101 |
checkEnabled="false"> |
102 |
<or>
|
103 |
<reference
|
104 |
definitionId="OnePartitionSelected"> |
105 |
</reference>
|
106 |
<reference
|
107 |
definitionId="OneCorpusSelected"> |
108 |
</reference>
|
109 |
</or>
|
110 |
</visibleWhen>
|
111 |
</command>
|
112 |
<command
|
113 |
commandId="org.txm.rcp.commands.function.ComputeQueryIndexOfTexts" |
114 |
icon="icons/functions/QueryIndexOfTexts.png" |
115 |
style="push"> |
116 |
<visibleWhen
|
117 |
checkEnabled="false"> |
118 |
<or>
|
119 |
<reference
|
120 |
definitionId="OneCorpusSelected"> |
121 |
</reference>
|
122 |
</or>
|
123 |
</visibleWhen>
|
124 |
</command>
|
125 |
</menuContribution>
|
126 |
<menuContribution
|
127 |
locationURI="menu:menu.help.plugins"> |
128 |
<command
|
129 |
commandId="org.txm.rcp.commands.OpenBrowser" |
130 |
label="%command.label.2" |
131 |
style="push"> |
132 |
<parameter
|
133 |
name="org.txm.rcp.commands.commandParameter2" |
134 |
value="https://groupes.renater.fr/wiki/txm-users/public/extensions#QueryIndex"> |
135 |
</parameter>
|
136 |
</command>
|
137 |
</menuContribution>
|
138 |
</extension>
|
139 |
<extension
|
140 |
point="org.eclipse.core.expressions.definitions"> |
141 |
<definition
|
142 |
id="OneQueryIndexSelected"> |
143 |
<with
|
144 |
variable="selection"> |
145 |
<iterate
|
146 |
ifEmpty="false" |
147 |
operator="and"> |
148 |
<instanceof
|
149 |
value="org.txm.queryindex.core.functions.QueryIndex"> |
150 |
</instanceof>
|
151 |
</iterate>
|
152 |
</with>
|
153 |
</definition>
|
154 |
<definition
|
155 |
id="OneQueryIndexOfTextsSelected"> |
156 |
<with
|
157 |
variable="selection"> |
158 |
<iterate
|
159 |
ifEmpty="false" |
160 |
operator="and"> |
161 |
<instanceof
|
162 |
value="org.txm.queryindex.core.functions.ExpI"> |
163 |
</instanceof>
|
164 |
</iterate>
|
165 |
</with>
|
166 |
</definition>
|
167 |
</extension>
|
168 |
</plugin>
|