<!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>
與特定指令建立關聯性的影像。
<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>
在工作台內,可利用 org.eclipse.ui.handlers.ICommandImageService
介面來取得指令的影像。此介面可以從支援工作台物件,例如 IWorkbench
本身擷取。若要擷取服務,您可以呼叫 IWorkbench.getAdapter(ICommandImageService.class)
。
Copyright (c) 2005 IBM Corporation and others.
All
rights reserved. 本程式與隨附的資料依照 Elipse Public License 1.0 版此次發行所隨附的條款而提供,
可以在以下網址取得:http://www.eclipse.org/legal/epl-v10.html