<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT image EMPTY>
<!ATTLIST image
commandId CDATA #REQUIRED
icon CDATA #REQUIRED
disabledIcon CDATA #IMPLIED
hoverIcon CDATA #IMPLIED
style CDATA #IMPLIED>
Tiettyyn komentoon liittyvät kuvat.
<extension point=
"org.eclipse.ui.commandsImages"
>
<image commandId=
"ProfileLast"
hoverIcon=
"icons/full/etool16/profile.gif"
disabledIcon=
"icons/full/dtool16/profile.gif"
icon=
"icons/full/etool16/profile.gif"
/>
<image commandId=
"ProfileLast"
hoverIcon=
"icons/full/etool16/history.gif"
disabledIcon=
"icons/full/dtool16/history.gif"
icon=
"icons/full/etool16/history.gif"
imageStyle=
"toolbar"
/>
</extension>
Työympäristössä kuvia voi noutaa komennoille
org.eclipse.ui.handlers.ICommandImageService
-liittymän avulla. Tämän liittymän voi noutaa työympäristön tukiobjekteista, kuten IWorkbench
-objektista. Palvelun noutopyyntö tehdään kutsun IWorkbench.getAdapter(ICommandImageService.class)
tapaisilla kutsuilla.
Copyright (c) 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html