Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Selection Problem after Perspective switching
Selection Problem after Perspective switching [message #649038] Mon, 17 January 2011 11:35 Go to next message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi,

I have defined a View with an TableViewer, who works as
ISelectionProvider, and a Command and Handler for the ViewToolbar.

The View is used in diffrent perspectives (defined inside the
PerspectiveExtensions).

If I select somtehing from the TableViewer and push the CommandIcon my
Handler get (by using HandlerUtil.getCurrentSelection()) the correct
selection.

Now I do switch the perspective, the View has also the focus and I see
the current selection inside the Viewer but if I push the Command again
I get a >null< for the selection.

Why do the ISelection Service don't hold the current selection?
Have somebody a tip how I get this selection back into the SelectionSevice?

Thanks in advance

Heiko
Re: Selection Problem after Perspective switching [message #649054 is a reply to message #649038] Mon, 17 January 2011 12:32 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What version of eclipse are you using? The source provider were
re-worked in 3.6 (Helios). If it fails there, I would open a bug at
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Selection Problem after Perspective switching [message #649093 is a reply to message #649054] Mon, 17 January 2011 15:51 Go to previous message
techteam is currently offline techteamFriend
Messages: 55
Registered: September 2010
Member
Hi Paul,
thanks for your quick answer.
Yes, I user Eclipse 3.6.1
I have filed a bug -> https://bugs.eclipse.org/bugs/show_bug.cgi?id=334524

Greeting
Heiko

Am 17.01.2011 13:32, schrieb Paul Webster:
> What version of eclipse are you using? The source provider were
> re-worked in 3.6 (Helios). If it fails there, I would open a bug at
> https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI
>
> PW
>
>
Previous Topic:how to create different sections in Preferences Pages
Next Topic:How to add help to Wizard
Goto Forum:
  


Current Time: Fri Apr 19 19:59:27 GMT 2024

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

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

Back to the top