SWT Resources RAP [message #1007236] |
Tue, 05 February 2013 03:17  |
Eclipse User |
|
|
|
Hello,
I am uncertain on how to handle Resources like Image, Color and Font in RAP. As far as I know they have to be disposed by the creator in SWT, because native OS resources are used.[1]
Now I am wondering, if disposing of these resources is necessary in RAP, too. If they need to be disposed, I would also like to know if they are allocated seperately for each user session or only once for the whole application.
I took a look at org.eclipse.swt.graphics.Image in my RAP workspace and the destroy() method is actually empty, but the documentation of Resource still says: "Applications must dispose of all resources which they allocate."
Thanks,
Tiburon
[1]http://www.eclipse.org/articles/swt-design-2/swt-design-2.html
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03925 seconds