Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349024 - [Compatibility] Contexts can be activated even if they've been asked to be deactivated
Summary: [Compatibility] Contexts can be activated even if they've been asked to be de...
Status: RESOLVED WORKSFORME
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-10 09:21 EDT by Remy Suen CLA
Modified: 2011-06-21 14:47 EDT (History)
2 users (show)

See Also:


Attachments
ContextService patch v1 (1.15 KB, patch)
2011-06-10 09:23 EDT, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.