root / TXM / trunk / org.txm.internalview.rcp / plugin.xml @ 3382
Historique | Voir | Annoter | Télécharger (6,93 ko)
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
---|---|
2 |
<?eclipse version="3.4"?>
|
3 |
<plugin> <extension |
4 |
point="org.eclipse.ui.commands"> |
5 |
<command
|
6 |
categoryId="org.txm.rcp.category.txm" |
7 |
defaultHandler="org.txm.internalview.rcp.handlers.ComputeInternalView" |
8 |
id="org.txm.internalview.rcp.handlers.ComputeInternalView" |
9 |
name="%command.name" |
10 |
returnTypeId="org.txm.internalview.core.functions.InternalView"> |
11 |
</command>
|
12 |
<command
|
13 |
defaultHandler="org.txm.internalview.rcp.handlers.CopyLines" |
14 |
id="org.txm.internalview.rcp.handlers.CopyLines" |
15 |
name="Copy"> |
16 |
</command>
|
17 |
</extension> <extension |
18 |
point="org.eclipse.ui.menus"> |
19 |
<menuContribution
|
20 |
allPopups="false" |
21 |
locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.properties.rcp.handlers.ComputeProperties"> |
22 |
<command
|
23 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
24 |
icon="icons/application_form_magnify.png" |
25 |
style="push"> |
26 |
<visibleWhen
|
27 |
checkEnabled="false"> |
28 |
<reference
|
29 |
definitionId="OneCorpusSelected"> |
30 |
</reference>
|
31 |
</visibleWhen>
|
32 |
</command>
|
33 |
</menuContribution>
|
34 |
<menuContribution
|
35 |
allPopups="false" |
36 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.properties.rcp.handlers.ComputeProperties"> |
37 |
<command
|
38 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
39 |
icon="icons/application_form_magnify.png" |
40 |
style="push"> |
41 |
<visibleWhen
|
42 |
checkEnabled="false"> |
43 |
<reference
|
44 |
definitionId="OneCorpusSelected"> |
45 |
</reference>
|
46 |
</visibleWhen>
|
47 |
</command>
|
48 |
</menuContribution>
|
49 |
<menuContribution
|
50 |
locationURI="menu:menu.corpus?after=org.txm.edition.rcp.handlers.OpenEdition"> |
51 |
<command
|
52 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
53 |
icon="icons/application_form_magnify.png" |
54 |
style="push"> |
55 |
<visibleWhen
|
56 |
checkEnabled="false"> |
57 |
<reference
|
58 |
definitionId="OneCorpusSelected"> |
59 |
</reference>
|
60 |
</visibleWhen>
|
61 |
</command>
|
62 |
</menuContribution>
|
63 |
<menuContribution
|
64 |
locationURI="popup:org.txm.internalview.rcp.editors.InternalViewEditor"> |
65 |
<command
|
66 |
commandId="org.txm.internalview.rcp.handlers.CopyLines" |
67 |
icon="platform:/plugin/org.eclipse.ui/icons/full/etool16/copy_edit.png" |
68 |
label="Copy" |
69 |
style="push"> |
70 |
</command>
|
71 |
</menuContribution>
|
72 |
|
73 |
</extension> <extension |
74 |
point="org.eclipse.ui.editors"> |
75 |
<editor
|
76 |
class="org.txm.internalview.rcp.editors.InternalViewEditor" |
77 |
default="false" |
78 |
icon="icons/application_form_magnify.png" |
79 |
id="org.txm.internalview.rcp.editors.InternalViewEditor" |
80 |
name="%editor.name"> |
81 |
</editor>
|
82 |
</extension> <extension |
83 |
point="org.eclipse.core.runtime.adapters"> |
84 |
<factory
|
85 |
adaptableType="org.txm.internalview.core.functions.InternalView" |
86 |
class="org.txm.internalview.rcp.adapters.InternalViewAdapterFactory"> |
87 |
<adapter
|
88 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
89 |
</adapter>
|
90 |
<adapter
|
91 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
92 |
</adapter>
|
93 |
</factory>
|
94 |
</extension> <extension |
95 |
point="org.eclipse.core.expressions.definitions"> |
96 |
<definition
|
97 |
id="OneInternalViewSelected"> |
98 |
<with
|
99 |
variable="corporaSelection"> |
100 |
<iterate
|
101 |
ifEmpty="false" |
102 |
operator="and"> |
103 |
<instanceof
|
104 |
value="org.txm.internalview.core.functions.InternalView"> |
105 |
</instanceof>
|
106 |
</iterate>
|
107 |
</with>
|
108 |
</definition>
|
109 |
<definition
|
110 |
id="InternalViewEditorActive"> |
111 |
<with
|
112 |
variable="activePart"> |
113 |
<instanceof
|
114 |
value="org.txm.internalview.rcp.editors.InternalViewEditor"> |
115 |
</instanceof>
|
116 |
</with>
|
117 |
</definition>
|
118 |
</extension>
|
119 |
<extension
|
120 |
point="org.eclipse.ui.handlers"> |
121 |
<handler
|
122 |
class="org.txm.internalview.rcp.handlers.SendInternalViewTo" |
123 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"> |
124 |
<activeWhen>
|
125 |
<and>
|
126 |
<reference
|
127 |
definitionId="InternalViewEditorActive"> |
128 |
</reference>
|
129 |
<reference
|
130 |
definitionId="SelectionIsNotEmpty"> |
131 |
</reference>
|
132 |
<reference
|
133 |
definitionId="SendSelectionContextNotActive"> |
134 |
</reference>
|
135 |
</and>
|
136 |
</activeWhen>
|
137 |
</handler>
|
138 |
<handler
|
139 |
class="org.txm.internalview.rcp.handlers.SendInternalViewTo" |
140 |
commandId="org.txm.index.rcp.handlers.ComputeIndex"> |
141 |
<activeWhen>
|
142 |
<and>
|
143 |
<reference
|
144 |
definitionId="InternalViewEditorActive"> |
145 |
</reference>
|
146 |
<reference
|
147 |
definitionId="SelectionIsNotEmpty"> |
148 |
</reference>
|
149 |
<reference
|
150 |
definitionId="SendSelectionContextNotActive"> |
151 |
</reference>
|
152 |
</and>
|
153 |
</activeWhen>
|
154 |
</handler>
|
155 |
<handler
|
156 |
class="org.txm.internalview.rcp.handlers.SendInternalViewTo" |
157 |
commandId="org.txm.progression.rcp.handlers.ComputeProgression"> |
158 |
<activeWhen>
|
159 |
<and>
|
160 |
<reference
|
161 |
definitionId="InternalViewEditorActive"> |
162 |
</reference>
|
163 |
<reference
|
164 |
definitionId="SelectionIsNotEmpty"> |
165 |
</reference>
|
166 |
<reference
|
167 |
definitionId="SendSelectionContextNotActive"> |
168 |
</reference>
|
169 |
</and>
|
170 |
</activeWhen>
|
171 |
</handler>
|
172 |
</extension>
|
173 |
|
174 |
</plugin>
|