Preserving focus in a form-like editor [message #444356] |
Tue, 14 February 2006 17:40 |
rick cameron Messages: 9 Registered: July 2009 |
Junior Member |
|
|
Hi, all
I am creating an editor that looks like a form - i.e. various controls
distributed over its surface. When the editor is deactivated & reactivated,
I would like focus to remain where it was.
I don't see any obvious support for this - and, indeed, the plugin.xml
editor in Eclipse doesn't work this way: when it is reactivated, the first
control on the form gets focus.
Is there existing support? If not, how would I best do this? Perhaps have
the editor detect deactivation, find out which child has focus, stash that,
then restore focus on reactivation? I suppose this could be factored out as
a separate class.
Thanks
- rick
|
|
|
Powered by
FUDForum. Page generated in 0.03212 seconds