Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Detecting focus
Detecting focus [message #485424] Fri, 11 September 2009 17:02 Go to next message
Ric Wright is currently offline Ric WrightFriend
Messages: 70
Registered: July 2009
Member
I have an editor based on FormEditor. In normal usage, there can be two or
more of these editors running at any given time. What is the best way to
detect which of the instances has the current focus and detect when they do
get or lose the focus? I tried using IPartListener, but it appears to only
detect when the object is "active" and not when it has focus.

TIA, Ric
Re: Detecting focus [message #485442 is a reply to message #485424] Fri, 11 September 2009 18:01 Go to previous message
Ric Wright is currently offline Ric WrightFriend
Messages: 70
Registered: July 2009
Member
Doh! Just implement setFocus(). I did that first time. Don't know why it
didn't work initially. Works as expected now. Sorry for the noise.

Ric


On 9/11/09 10:02 AM, in article C6CFD0B0.3832E%riwright@adobe.com, "Ric
Wright" <riwright@adobe.com> wrote:

> I have an editor based on FormEditor. In normal usage, there can be two or
> more of these editors running at any given time. What is the best way to
> detect which of the instances has the current focus and detect when they do
> get or lose the focus? I tried using IPartListener, but it appears to only
> detect when the object is "active" and not when it has focus.
>
> TIA, Ric
>
Previous Topic:Capabilities and Key Bindings
Next Topic:TreeViewer with lazy loading
Goto Forum:
  


Current Time: Fri Dec 19 13:07:57 GMT 2014

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

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