Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 349024

Summary: [Compatibility] Contexts can be activated even if they've been asked to be deactivated
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: major    
Priority: P3 CC: Olivier_Thomann, pwebster
Version: 1.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
ContextService patch v1 none

Description Remy Suen CLA 2011-06-10 09:21:35 EDT
1. Open an editor.
2. Type some stuff. Ctrl+Z undoes it.
3. Launch an application that prints to the 'Console' view. Show the 'Console' view if it isn't already shown.
4. Click in the 'Console' view and immediately hit F12 to reactivate the editor.
5. Try to repeat step 2 and Ctrl+Z will not work.
Comment 1 Remy Suen CLA 2011-06-10 09:23:20 EDT
Created attachment 197780 [details]
ContextService patch v1

At the moment it seems that the problem is that the activation request to the ECS is done asynchronously so even if we immediately ask the the ICS to deactivate the context (when you hit F12 after activating the 'Console' view), the ECS will still activate the console and debug contexts. The fix is to not perform any asynchronous processing if our RunAndTrack has been removed from the system.
Comment 2 Remy Suen CLA 2011-06-21 14:47:48 EDT
(In reply to comment #1)
> Created attachment 197780 [details]
> ContextService patch v1

Can no longer reproduce with I20110620-1631 on Windows XP. The patch above was released as a part of the changes for bug 348817.