root / tmp / org.txm.internalview.rcp / plugin.xml @ 3151
Historique | Voir | Annoter | Télécharger (6 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 |
</extension> <extension |
13 |
point="org.eclipse.ui.menus"> |
14 |
<menuContribution
|
15 |
allPopups="false" |
16 |
locationURI="toolbar:org.txm.rcp.toolbarcorpus?after=org.txm.properties.rcp.handlers.ComputeProperties"> |
17 |
<command
|
18 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
19 |
icon="icons/application_form_magnify.png" |
20 |
style="push"> |
21 |
<visibleWhen
|
22 |
checkEnabled="false"> |
23 |
<reference
|
24 |
definitionId="OneCorpusSelected"> |
25 |
</reference>
|
26 |
</visibleWhen>
|
27 |
</command>
|
28 |
</menuContribution>
|
29 |
<menuContribution
|
30 |
allPopups="false" |
31 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView?after=org.txm.properties.rcp.handlers.ComputeProperties"> |
32 |
<command
|
33 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
34 |
icon="icons/application_form_magnify.png" |
35 |
style="push"> |
36 |
<visibleWhen
|
37 |
checkEnabled="false"> |
38 |
<reference
|
39 |
definitionId="OneCorpusSelected"> |
40 |
</reference>
|
41 |
</visibleWhen>
|
42 |
</command>
|
43 |
</menuContribution>
|
44 |
<menuContribution
|
45 |
locationURI="menu:menu.corpus?after=org.txm.edition.rcp.handlers.OpenEdition"> |
46 |
<command
|
47 |
commandId="org.txm.internalview.rcp.handlers.ComputeInternalView" |
48 |
icon="icons/application_form_magnify.png" |
49 |
style="push"> |
50 |
<visibleWhen
|
51 |
checkEnabled="false"> |
52 |
<reference
|
53 |
definitionId="OneCorpusSelected"> |
54 |
</reference>
|
55 |
</visibleWhen>
|
56 |
</command>
|
57 |
</menuContribution>
|
58 |
|
59 |
</extension> <extension |
60 |
point="org.eclipse.ui.editors"> |
61 |
<editor
|
62 |
class="org.txm.internalview.rcp.editors.InternalViewEditor" |
63 |
default="false" |
64 |
icon="icons/application_form_magnify.png" |
65 |
id="org.txm.internalview.rcp.editors.InternalViewEditor" |
66 |
name="%editor.name"> |
67 |
</editor>
|
68 |
</extension> <extension |
69 |
point="org.eclipse.core.runtime.adapters"> |
70 |
<factory
|
71 |
adaptableType="org.txm.internalview.core.functions.InternalView" |
72 |
class="org.txm.internalview.rcp.adapters.InternalViewAdapterFactory"> |
73 |
<adapter
|
74 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
75 |
</adapter>
|
76 |
<adapter
|
77 |
type="org.eclipse.ui.model.IWorkbenchAdapter2"> |
78 |
</adapter>
|
79 |
</factory>
|
80 |
</extension> <extension |
81 |
point="org.eclipse.core.expressions.definitions"> |
82 |
<definition
|
83 |
id="OneInternalViewSelected"> |
84 |
<with
|
85 |
variable="selection"> |
86 |
<iterate
|
87 |
ifEmpty="false" |
88 |
operator="and"> |
89 |
<instanceof
|
90 |
value="org.txm.internalview.core.functions.InternalView"> |
91 |
</instanceof>
|
92 |
</iterate>
|
93 |
</with>
|
94 |
</definition>
|
95 |
<definition
|
96 |
id="InternalViewEditorActive"> |
97 |
<with
|
98 |
variable="activePart"> |
99 |
<instanceof
|
100 |
value="org.txm.internalview.rcp.editors.InternalViewEditor"> |
101 |
</instanceof>
|
102 |
</with>
|
103 |
</definition>
|
104 |
</extension>
|
105 |
<extension
|
106 |
point="org.eclipse.ui.handlers"> |
107 |
<handler
|
108 |
class="org.txm.internalview.rcp.handlers.SendInternalViewTo" |
109 |
commandId="org.txm.concordance.rcp.handlers.ComputeConcordance"> |
110 |
<activeWhen>
|
111 |
<and>
|
112 |
<reference
|
113 |
definitionId="InternalViewEditorActive"> |
114 |
</reference>
|
115 |
<reference
|
116 |
definitionId="SendSelectionContextNotActive"> |
117 |
</reference>
|
118 |
</and>
|
119 |
</activeWhen>
|
120 |
</handler>
|
121 |
<handler
|
122 |
class="org.txm.internalview.rcp.handlers.SendInternalViewTo" |
123 |
commandId="org.txm.index.rcp.handlers.ComputeIndex"> |
124 |
<activeWhen>
|
125 |
<and>
|
126 |
<reference
|
127 |
definitionId="InternalViewEditorActive"> |
128 |
</reference>
|
129 |
<reference
|
130 |
definitionId="SendSelectionContextNotActive"> |
131 |
</reference>
|
132 |
</and>
|
133 |
</activeWhen>
|
134 |
</handler>
|
135 |
<handler
|
136 |
class="org.txm.internalview.rcp.handlers.SendInternalViewTo" |
137 |
commandId="org.txm.progression.rcp.handlers.ComputeProgression"> |
138 |
<activeWhen>
|
139 |
<and>
|
140 |
<reference
|
141 |
definitionId="InternalViewEditorActive"> |
142 |
</reference>
|
143 |
<reference
|
144 |
definitionId="SendSelectionContextNotActive"> |
145 |
</reference>
|
146 |
</and>
|
147 |
</activeWhen>
|
148 |
</handler>
|
149 |
</extension>
|
150 |
|
151 |
</plugin>
|