|Display.setFocusControl in RAP [message #816875]
||Fri, 09 March 2012 06:23
| Amandeep Chahal
Registered: September 2011
I have a requirement where I dispose the control when it is not in focus. However, due to the implementation in of Display.setFocusControl this is leading to a WIDGET DISPOSED error.
FocusEvent event = new FocusEvent( currentFocusControl, FocusEvent.FOCUS_LOST );
currentFocusControl.getShell().updateDefaultButton( currentFocusControl, false);
In 'event.processEvent' my FOcusLost event disposes the control and 'currentFocusControl.getShell()' throws a WIDGET DISPOSED error.
Is there a way to fix this? Or avoid this?
Powered by FUDForum
. Page generated in 0.03950 seconds