Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Display.setFocusControl in RAP
Display.setFocusControl in RAP [message #816872] Fri, 09 March 2012 11:23
Amandeep Chahal is currently offline Amandeep ChahalFriend
Messages: 85
Registered: September 2011
Location: India
Member
Hi,
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 );
event.processEvent();
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?
Previous Topic:New RichText support in Tables
Next Topic:Display.setFocusControl in RAP
Goto Forum:
  


Current Time: Fri Mar 29 14:40:40 GMT 2024

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

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

Back to the top