Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How do you listen to editor and view focus events?
How do you listen to editor and view focus events? [message #462594] Fri, 14 October 2005 12:44 Go to next message
Tim Shelley is currently offline Tim ShelleyFriend
Messages: 60
Registered: July 2009
Member
Hi all,

I'm trying to respond to a view and editor loosing focus, i.e. the user has
gone to another view/editor.

I've added focusListeners to the main composites in the view and editor but
they are never called when I switch to another view/editor.

Anyone one have any ideas on what to try next?

I've even tried it in the editor with:

Control tabbedFolder = getContainer();
Composite editorPage = tabbedFolder.getParent();
editorPage.addFocusListener(new FocusAdapter() {}

Regards,

Tim.
Re: How do you listen to editor and view focus events? [message #462600 is a reply to message #462594] Fri, 14 October 2005 16:50 Go to previous message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Tim,
try capture PartListener activate/deactivate

Peco
Tim Shelley wrote:

> Hi all,
>
> I'm trying to respond to a view and editor loosing focus, i.e. the user
> has gone to another view/editor.
>
> I've added focusListeners to the main composites in the view and editor
> but they are never called when I switch to another view/editor.
>
> Anyone one have any ideas on what to try next?
>
> I've even tried it in the editor with:
>
> Control tabbedFolder = getContainer();
> Composite editorPage = tabbedFolder.getParent();
> editorPage.addFocusListener(new FocusAdapter() {}
>
> Regards,
>
> Tim.
Previous Topic:Find&Replace Items values into Tree
Next Topic:Setting selection in JFace ComboViewer
Goto Forum:
  


Current Time: Sat Sep 19 20:27:08 GMT 2020

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

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

Back to the top