Accessing SharedImages in plugin.xml (for ex. org.eclipse.ui.menus) [message #331352] |
Wed, 03 September 2008 09:20  |
Eclipse User |
|
|
|
Originally posted by: bach2kCUT_THIS.gazeta.pl
Hi,
I have following command declaration
<extension point="org.eclipse.ui.menus">
<menuContribution locationURI="popup:pl.some.menu">
<command commandId="pl.some.page.delete"
icon="icons/delete.gif"
label="%page.delete">
</command>
.....
I am using my copy of delete icon. I would like to use shared image instead,
like:
PlatformUI.getWorkbench().getSharedImages().getImage(IShared Images.IMG_TOOL_
DELETE)
How can I use ISharedImages.IMG_TOOL_DELETE in my command declaration
best regards
krzysztof
|
|
|
|
|
Re: Accessing SharedImages in plugin.xml (for ex. org.eclipse.ui.menus) [message #331419 is a reply to message #331366] |
Fri, 05 September 2008 11:25  |
Eclipse User |
|
|
|
Originally posted by: bach2kCUT_THIS.gazeta.pl
> That isn't currently supported. Can you use shared images in actionSet
> actions? Is there already a way to specify them?
dont know.
I only found that I can use "org.eclipse.ui.edit.delete" as commandId
in my declaration thus it gets image from command declared.
But this doesn't solve the problem.
I think "org.eclipse.ui.edit.delete" defined icon is not
ISharedImages.IMG_TOOL_DELETE
(and I already use this command for different purpose anyway).
The enhancement would be usefull.
best regards
krzysztof
|
|
|
Powered by
FUDForum. Page generated in 0.03571 seconds