Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Preserving focus in a form-like editor
Preserving focus in a form-like editor [message #444356] Tue, 14 February 2006 17:40
rick cameron is currently offline rick cameronFriend
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
Previous Topic:SWT and Eclipse Export
Next Topic:Feature based products
Goto Forum:
  


Current Time: Wed Dec 11 19:00:42 GMT 2024

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

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

Back to the top