Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Grid doesn't get FocusOut when it actually loses focus
Grid doesn't get FocusOut when it actually loses focus [message #483850] Thu, 03 September 2009 11:32
blutkind  is currently offline blutkind Friend
Messages: 25
Registered: July 2009
Junior Member
Hi,

We use Grid in RCP application. We need to perform certain actions when
the view with the grid loses focus. I've added a FocusOut listener, but it
doesn't always work. On the other hand, Deactivate listener does work to
often. Let me describe in examples:
Focus is in the grid which resides in a separate view. We open editor in a
cell, then
- click on another view that holds a tree (kind-of project explorer). The
editor closes, focus goes to the tree but the grid doesn't get FocusOut
event. It gets Deactivate event though
- but if resize the view, editor stays open, grid doesn't get FocusOut
event but gets Deactivate event.
I think it's not a correct behavior. In first case, both FocusOut and
Deactivate should be caught, in second - none of them.
I think it is possible to use a listener on the view instead, but I'd like
to encapsulate the logic inside a widget, not exposing it to the view it
resides in.
Previous Topic:Change row header text
Next Topic:Grid doesn't get FocusOut when it actually loses focus
Goto Forum:
  


Current Time: Sat Dec 20 13:57:15 GMT 2014

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

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