Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » selection on focus problem
selection on focus problem [message #41455] Wed, 08 August 2007 12:31
Thomas Kühne is currently offline Thomas KühneFriend
Messages: 6
Registered: July 2009
Junior Member

I have a problem with selections in a ViewPart. The View Part - I call it
ServiceView contains a TreeViewer which provides selection events with

viewer.setContentProvider(new TreeViewerContentProvider());

This control is a tree which contains i.e. a menu structure. When I click on
an item
in the tree viewer a view should be activated. I did this with

page.showView("anotherView") in the selectionChanged method and it works

Now the new view "anotherView" which I selected in the tree viewer got the
focus. I go back to
the "ServiceView" and click directly another tree item but the ViewPart
(ServiceView) which surrounds the
TreeViewer is not activated.The tree item i clicked is activated but the
selection is not fired.

The selection is fired when I first click on the "ServiceView" Tab an then
on another item or when I click anywhere in the newly opened view
"anotherView" an then
come back to my "ServiceView" and click another Item.

I work around the problem with the following code in the selectionChanged


Now the ServiceView got the focus back again after opening "anotherView" and
the selection event in
the underlaying treeViewer will be fired on next click.

I am working with HEAD from SVN.

Is this the right behavior ?

Any hints would be fine.

Previous Topic:Tree columns and editability
Next Topic:[ANN] Extension Points moved
Goto Forum:

Current Time: Sat Jun 10 03:42:51 GMT 2023

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

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

Back to the top