Detecting focus [message #485424] |
Fri, 11 September 2009 13:02  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.05144 seconds