<!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>
Images à associer à une commande spécifique.
<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=
"barre d'outils"
/>
</extension>
Dans le plan de travail, il est possible de disposer d'images pour les commandes utilisant l'interface org.eclipse.ui.handlers.ICommandImageService. Cette interface peut être récupérée à partir des objets du plan de travail la prenant en charge, tels que le IWorkbench lui-même. Pour récupérer ce service, lancez un appel tel que IWorkbench.getAdapter(ICommandImageService.class).
Copyright (c) 2005 IBM Corporation and others.
All rights reserved. Ce programme et les produits qui l'accompagnent sont
distribués sous licence publique v1.0 d'Eclipse et disponibles à l'adresse suivante : http://www.eclipse.org/legal/epl-v10.html