Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » [CommonNavigator] Selection changes without focus
[CommonNavigator] Selection changes without focus [message #463792] Thu, 15 February 2007 11:58 Go to next message
Eclipse UserFriend
I open an editor by double-clicking on a CommonNavigator node. The
editor is opened and gets the focus. When I click on CommonNavigator
tree nodes and change the tree selection, the editor keeps the focus!
This is strange. Could this be a bug? How can I circumvent this problem?
Thanks in advance for your help.

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Re: [CommonNavigator] Selection changes without focus [message #463894 is a reply to message #463792] Mon, 19 February 2007 11:44 Go to previous messageGo to next message
Eclipse UserFriend
Sounds like a bug. Could it be that the editor responds to selection
changes by activating itself, or setting the focus to some control in the
editor's content area?

"Peter Maas" <peter.maas@spam-nirvana.de> wrote in message
news:er23gh$mfl$1@utils.eclipse.org...
>I open an editor by double-clicking on a CommonNavigator node. The
> editor is opened and gets the focus. When I click on CommonNavigator
> tree nodes and change the tree selection, the editor keeps the focus!
> This is strange. Could this be a bug? How can I circumvent this problem?
> Thanks in advance for your help.
>
> --
> Gruesse/Regards,
>
> Peter Maas, Aachen
> E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Re: [CommonNavigator] Selection changes without focus [message #463917 is a reply to message #463894] Tue, 20 February 2007 06:45 Go to previous message
Eclipse UserFriend
Boris Bokowski schrieb:
> "Peter Maas" <peter.maas@spam-nirvana.de> wrote in message
> news:er23gh$mfl$1@utils.eclipse.org...
>> I open an editor by double-clicking on a CommonNavigator node. The
>> editor is opened and gets the focus. When I click on CommonNavigator
>> tree nodes and change the tree selection, the editor keeps the focus!
> Sounds like a bug. Could it be that the editor responds to selection
> changes by activating itself, or setting the focus to some control in the
> editor's content area?

Sequence:

- double-click on a CommonNavigator node
- Action opens editor (page.openEditor()): editor has Focus and is active
- double-click on another CommonNavigator node: tree has Focus and editor is active

In the meantime I have found a workaround: the editor open action is a
SelectionChangedListener listening to the CommonViewer. The selectionChanged
method of the action sets the CommonNavigator active (page.activate())
if necessary.

--
Gruesse/Regards,

Peter Maas, Aachen
E-mail "cC5tYWFzQG1hZ21hc29mdC5kZQ==\n".decode("base64")
Previous Topic:Tooltips display duration
Next Topic:invoking Swing actionhandlers from RCP application menu
Goto Forum:
  


Current Time: Wed Mar 19 08:50:13 EDT 2025

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

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

Back to the top