Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Accessing SharedImages in plugin.xml (for ex. org.eclipse.ui.menus)
Accessing SharedImages in plugin.xml (for ex. org.eclipse.ui.menus) [message #331352] Wed, 03 September 2008 09:20 Go to next message
Eclipse UserFriend
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 #331366 is a reply to message #331352] Wed, 03 September 2008 16:55 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

That isn't currently supported. Can you use shared images in actionSet
actions? Is there already a way to specify them?

Please open an enhancement against Eclipse Platform UI at
https://bugs.eclipse.org/bugs/

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Re: Accessing SharedImages in plugin.xml (for ex. org.eclipse.ui.menus) [message #331392 is a reply to message #331366] Thu, 04 September 2008 15:05 Go to previous messageGo to next message
Thomas Champagne is currently offline Thomas ChampagneFriend
Messages: 1
Registered: July 2009
Junior Member
Hello
I create a bug report about this enhancement :
http://bugs.eclipse.org/bugs/show_bug.cgi?id=246224

Thomas
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to contribute menu item to Package Explorer
Next Topic:Re: [databinding] bind to a null EReference
Goto Forum:
  


Current Time: Sun Jun 30 00:25:56 GMT 2024

Powered by FUDForum. Page generated in 0.02815 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top