Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » Display workspace-located image
Display workspace-located image [message #753956] Mon, 31 October 2011 07:52 Go to next message
Bernhard Berger is currently offline Bernhard BergerFriend
Messages: 5
Registered: October 2011
Junior Member
Hi folks,

I'm relatively new to Graphiti and came to the point that I want to display an image that is located in my workspace. As far as I see the images registered with an IImageProvider have to be located in the plugin itself, since AbstractUIPlugin.imageDescriptorFromPlugin(...) is used for opening the files.

Is there currently a "official" way of adding images that are located somewhere else?

Thanks a lot for your work,

Bernhard
Re: Display workspace-located image [message #753967 is a reply to message #753956] Mon, 31 October 2011 09:09 Go to previous message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1931
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Have a look at ImageDescriptor.createFromURL(fullPathString).

HTH,
Michael
Previous Topic:Know the Co-ordinates
Next Topic:Using graphiti diagrams without GUI
Goto Forum:
  


Current Time: Thu Apr 25 02:14:13 GMT 2024

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

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

Back to the top