<!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>
Bilder for tilknytning til en bestemt kommando.
<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>
På en arbeidsbenk er det mulig å hente bilder for kommandoer ved hjelp av grensesnittet org.eclipse.ui.handlers.ICommandImageService
. Dette grensesnittet kan hentes fra
arbeidsbenkobjekter som støttes, for eksempel selve IWorkbench
. Du kan hente denne tjenesten ved å
foreta et kall, for eksempel IWorkbench.getAdapter(ICommandImageService.class)
.
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