Model Image Management [message #895136] |
Wed, 11 July 2012 15:14  |
Eclipse User |
|
|
|
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 17:13  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05448 seconds