X Tutup
Skip to content

Commit c5b2526

Browse files
committed
Adds toolbar to core expression example
1 parent 7466f8c commit c5b2526

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

com.vogella.eclipse.e3.coreexpressions/plugin.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,37 @@
5959
id="oneElementSelected">
6060
<with
6161
variable="selection">
62+
<count
63+
value="1">
64+
</count>
6265
</with>
6366
</definition>
6467
</extension>
68+
<extension
69+
point="org.eclipse.ui.menus">
70+
<menuContribution
71+
allPopups="false"
72+
locationURI="toolbar:org.eclipse.ui.main.toolbar">
73+
<toolbar
74+
id="com.vogella.eclipse.e3.coreexpression.toolbar4">
75+
<command
76+
commandId="org.eclipse.ui.file.exit"
77+
label="Exit visible"
78+
style="push">
79+
</command>
80+
<command
81+
commandId="org.eclipse.ui.file.exit"
82+
label="Exit hidden"
83+
style="push">
84+
<visibleWhen
85+
checkEnabled="false">
86+
<reference
87+
definitionId="oneElementSelected">
88+
</reference>
89+
</visibleWhen>
90+
</command>
91+
</toolbar>
92+
</menuContribution>
93+
</extension>
6594

6695
</plugin>

0 commit comments

Comments
 (0)
X Tutup