Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » switching perspective doesn't seem to restore selection variable in Eclipse 3.5
switching perspective doesn't seem to restore selection variable in Eclipse 3.5 [message #480052] Thu, 13 August 2009 15:04 Go to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Hi

We are having a strange issue with an enabledWhen of a handler that
works in Eclipse 3.4.2 and doesn't in 3.5.

We have identified the following steps to reproduce it:
- Select an element in view 1 in perspective 1.
- This view has a command with a handler with an enabledWhen that
references the "selection" variable. The enabledWhen checks that only
one element of an expected type is selected. The handler is enabled.
- Switch to perspective 2 and select an element in view 2.
- Switch back to perspective 1.
- The element of view 1 and the view itself are still "visually"
selected (blue background) but the handler is not enabled. Some
debugging seems to suggest that the "selection" source variable is empty.
- If the RCP application loses and gains the focus the handler is
enabled again. The same is true if a different view is selected and view
1 is selected again.

Unfortunately we have not yet been able to come up with a minimal piece
of code that demonstrates the bug. Are you aware of any changes in this
area between Eclipse 3.4.2 and 3.5 or do you have any debugging tips?

Cheers
Philippe
Re: switching perspective doesn't seem to restore selection variable in Eclipse 3.5 [message #480054 is a reply to message #480052] Thu, 13 August 2009 15:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

This might be related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=277926 where the source provider is updating its internal state but not firing the correct events.

PW


Re: switching perspective doesn't seem to restore selection variable in Eclipse 3.5 [message #480221 is a reply to message #480054] Fri, 14 August 2009 12:14 Go to previous messageGo to next message
Philippe Marschall is currently offline Philippe MarschallFriend
Messages: 121
Registered: July 2009
Senior Member
Paul Webster wrote:
> This might be related to
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=277926 where the source
> provider is updating its internal state but not firing the correct events.

I tried M20090812-0800 and the problem is still there.

Cheers
Philippe
Re: switching perspective doesn't seem to restore selection variable in Eclipse 3.5 [message #480256 is a reply to message #480221] Fri, 14 August 2009 15:00 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Hi Philippe,

I would enter a bug at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Platform &component=UI

There is a template to create a plugin with a sample view. If you could include XML in the bug report that reproduces the problem for you (where your view1 is the Sample View) there might be a chance for us to fix this in 3.5.1

PW


Previous Topic:How to change the default position for popupMenu
Next Topic:How to link a contentType to an existing editor?
Goto Forum:
  


Current Time: Thu Apr 25 15:45:28 GMT 2024

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

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

Back to the top