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 13:02 Go to next message
Ric Wright is currently offline Ric Wright
Messages: 69
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 14:01 Go to previous message
Ric Wright is currently offline Ric Wright
Messages: 69
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: Tue Jul 22 21:44:27 EDT 2014

Powered by FUDForum. Page generated in 0.03155 seconds