We have a use case where the images might come from different plugins. It seems that the image provider registered to the diagram type provider is expecting all the images coming from the same plugin/bundle. And the default plugin id for the image provider is set using the id of the plugin where the diagram type provider is declared when the diagram type provider is initialized.
Could the image provider be enhanced to support images from different plugins?
Michael Wenz Messages: 1292 Registered: July 2009 Location: Walldorf, Germany
Senior Member
Usually you would define one ImageProvider for each of your plugins that
provide images and register all these ImageProviders for your diagram type.
(There can be more than one ImageProvider to a diagram type.)
Does that help?
Michael
"Shenxue Zhou" <shenxue.zhou@oracle.com> wrote in message
news:iedlku$jtd$1@news.eclipse.org...
> We have a use case where the images might come from different plugins. It
> seems that the image provider registered to the diagram type provider is
> expecting all the images coming from the same plugin/bundle. And the
> default plugin id for the image provider is set using the id of the plugin
> where the diagram type provider is declared when the diagram type provider
> is initialized.
> Could the image provider be enhanced to support images from different
> plugins?
>
> Thank you!
>
> Shenxue