|
|
Re: Using images from other plugins in LabelProvider [message #1000137 is a reply to message #999614] |
Sun, 13 January 2013 23:58  |
Eclipse User |
|
|
|
On 2013-12-01 18:09, Ashwani Kr Sharma wrote:
> Hi,
>
> I am kinna stuck with this issue. Can you please give some hints.
>
> Regards,
> Ashwani Kr Sharma
Hint 1: A label provider usues an IImageHelper to get the image
Hint 1: An instance of an IImageHelper is bound in your project.
Hint 2: It is normally bound to org.eclipse.xtext.ui.PluginImageHelper
Hint 3: When you read the source of the class in Hint 2 you will see
that it operates on one given plugin.
Don't know what you want to achieve (search through multiple plugins, or
just look all images up in a different plugin).
I can imagine writing an aggregate (delegating) IImageHelper that
attempts to get an image from other IImageHelpers.
How it gets images naturally depends on how other plugins expose them.
An Xtext ui project has functionality to deal with icons that works with
the PluginImageHelper. Thus, you may be able to use it on other plugins
if you follow the same scheme, or you are on your own.
Hope that helps.
- henrik
|
|
|
Powered by
FUDForum. Page generated in 0.05946 seconds