|JFace ControlDecoration not consistent. [message #909378]
||Thu, 06 September 2012 23:49
| Chris Fairhall
Registered: February 2011
I'm using a JFace ControlDecoration in a single sourced RWT/SWT standalone application.|
When disposing of old ControlDecoration if I call #dispose without first calling #hide, under SWT I get left with remnants of the image on the screen. No update gets called before the ControlDecoration is disposed.
That's fine, I can just call #hide first.
When doing this in RWT, #hide throws a [org.eclipse.swt.SWTException: Widget is disposed] if the ControlDecoration is already disposed. SWT can never throw this exception when calling the #hide method.
I think it would be good for RWT to check if its internal implementation is already disposed and not throw an exception, since there is no #isDisposed API.
ps: not urgent as I've fixed the cause of the duplicate calls to hide/dispose in my code
Powered by FUDForum
. Page generated in 0.02169 seconds