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
Hi,

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
fine.

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
click
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
method:

page.showView("anotherView");
page.showView("ServiceView");

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.

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


Current Time: Thu Apr 25 20:09:49 GMT 2024

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

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

Back to the top