Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Image provider supporting images from different plugins
Image provider supporting images from different plugins [message #645362] Thu, 16 December 2010 18:31 Go to next message
Shenxue Zhou is currently offline Shenxue ZhouFriend
Messages: 50
Registered: July 2009
Member
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
Re: Image provider supporting images from different plugins [message #645484 is a reply to message #645362] Fri, 17 December 2010 12:22 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1640
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
Previous Topic:Linking Domain Models to Diagram
Next Topic:Does container shape have to have a GA?
Goto Forum:
  


Current Time: Sat Dec 20 08:00:59 GMT 2014

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

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