root / tmp / org.txm.cah.rcp / plugin.xml @ 532
History | View | Annotate | Download (4.2 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.cah.rcp.handlers.ComputeAHC" |
9 |
id="org.txm.cah.rcp.handlers.ComputeAHC" |
10 |
name="%command.name"> |
11 |
</command>
|
12 |
</extension>
|
13 |
<extension
|
14 |
point="org.eclipse.ui.menus"> |
15 |
<menuContribution
|
16 |
allPopups="false" |
17 |
locationURI="toolbar:org.txm.rcp.toolbartools"> |
18 |
<command
|
19 |
commandId="org.txm.cah.rcp.handlers.ComputeAHC" |
20 |
icon="icons/cah.png" |
21 |
style="push" |
22 |
tooltip="%command.tooltip"> |
23 |
<visibleWhen
|
24 |
checkEnabled="false"> |
25 |
<or>
|
26 |
<reference
|
27 |
definitionId="OneCASelected"> |
28 |
</reference>
|
29 |
<reference
|
30 |
definitionId="OneLexicalTableSelected"> |
31 |
</reference>
|
32 |
<reference
|
33 |
definitionId="OnePartitionSelected"> |
34 |
</reference>
|
35 |
</or>
|
36 |
</visibleWhen>
|
37 |
</command>
|
38 |
</menuContribution>
|
39 |
<menuContribution
|
40 |
allPopups="false" |
41 |
locationURI="popup:org.txm.rcp.views.corpora.CorporaView"> |
42 |
<command
|
43 |
commandId="org.txm.cah.rcp.handlers.ComputeAHC" |
44 |
icon="icons/cah.png" |
45 |
style="push"> |
46 |
<visibleWhen
|
47 |
checkEnabled="false"> |
48 |
<or>
|
49 |
<reference
|
50 |
definitionId="OneCASelected"> |
51 |
</reference>
|
52 |
<reference
|
53 |
definitionId="OneLexicalTableSelected"> |
54 |
</reference>
|
55 |
<reference
|
56 |
definitionId="OnePartitionSelected"> |
57 |
</reference>
|
58 |
</or>
|
59 |
</visibleWhen>
|
60 |
</command>
|
61 |
</menuContribution>
|
62 |
<menuContribution
|
63 |
locationURI="menu:menu.tools"> |
64 |
<command
|
65 |
commandId="org.txm.cah.rcp.handlers.ComputeAHC" |
66 |
icon="icons/cah.png" |
67 |
style="push"> |
68 |
<visibleWhen
|
69 |
checkEnabled="false"> |
70 |
<or>
|
71 |
<reference
|
72 |
definitionId="OneCASelected"> |
73 |
</reference>
|
74 |
<reference
|
75 |
definitionId="OneLexicalTableSelected"> |
76 |
</reference>
|
77 |
<reference
|
78 |
definitionId="OnePartitionSelected"> |
79 |
</reference>
|
80 |
</or>
|
81 |
</visibleWhen>
|
82 |
</command>
|
83 |
</menuContribution>
|
84 |
</extension>
|
85 |
<extension
|
86 |
point="org.eclipse.ui.editors"> |
87 |
<editor
|
88 |
class="org.txm.cah.rcp.editors.AHCChartEditor" |
89 |
default="false" |
90 |
icon="icons/cah.png" |
91 |
id="org.txm.cah.core.functions.AHC" |
92 |
name="%editor.name"> |
93 |
</editor>
|
94 |
</extension>
|
95 |
<extension
|
96 |
point="org.eclipse.core.runtime.adapters"> |
97 |
<factory
|
98 |
adaptableType="org.txm.cah.core.functions.CAH" |
99 |
class="org.txm.cah.rcp.adapters.AHCAdapterFactory"> |
100 |
<adapter
|
101 |
type="org.eclipse.ui.model.IWorkbenchAdapter"> |
102 |
</adapter>
|
103 |
</factory>
|
104 |
</extension>
|
105 |
<extension
|
106 |
point="org.eclipse.ui.preferencePages"> |
107 |
<page
|
108 |
category="org.txm.rcp.preferences.UserPreferencePage" |
109 |
class="org.txm.cah.rcp.preferences.AHCPreferencePage" |
110 |
id="org.txm.cah.rcp.preferences.CAHPreferencePage" |
111 |
name="%page.name"> |
112 |
</page>
|
113 |
</extension>
|
114 |
<extension
|
115 |
point="org.eclipse.core.expressions.definitions"> |
116 |
<definition
|
117 |
id="OneCAHSelected"> |
118 |
<with
|
119 |
variable="selection"> |
120 |
<iterate
|
121 |
ifEmpty="false" |
122 |
operator="and"> |
123 |
<instanceof
|
124 |
value="org.txm.cah.core.functions.CAH"> |
125 |
</instanceof>
|
126 |
</iterate>
|
127 |
</with>
|
128 |
</definition>
|
129 |
</extension>
|
130 |
|
131 |
</plugin>
|