Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Model Image Management(Managing images from model element's icon-URI)
Model Image Management [message #895136] Wed, 11 July 2012 19:14 Go to next message
Joseph Carroll is currently offline Joseph CarrollFriend
Messages: 174
Registered: May 2012
Location: Milwaukee, WI
Senior Member

On a MPart (or any model element), by calling:
part.getContext().get(iconURI);

Will this return an Image object?

If so, will the context take care of disposing the image at the appropriate time, or is that something I have to manage?

thanks,

JD
Re: Model Image Management [message #895170 is a reply to message #895136] Wed, 11 July 2012 21:13 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
No this doesn't work but you might want to take a look at. My addons who
free you from managing resources.

See
http://tomsondev.bestsolution.at/2012/03/28/slides-from-eclipsecon-talks/ the
e4 talk shows starting on page 38 onwards how this works.

The model editor uses this stuff. To make it even easier you could
invent your own annotation @Image("myimage").

Tom

Am 11.07.12 21:14, schrieb Joseph Carroll:
> On a MPart (or any model element), by calling:
> part.getContext().get(iconURI);
> Will this return an Image object?
>
> If so, will the context take care of disposing the image at the
> appropriate time, or is that something I have to manage?
>
> thanks,
>
> JD
Previous Topic:migrate from eclipse 3.2.2 to 3.7.2
Next Topic:SimpleIDE Menus and Navigator Control
Goto Forum:
  


Current Time: Fri Apr 26 14:27:19 GMT 2024

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

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

Back to the top