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

Bug 314538

Summary: Selection service considers context layers incorrectly
Product: [Eclipse Project] e4 Reporter: Paul Webster <pwebster>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3 CC: remy.suen
Version: 1.0   
Target Milestone: 1.0 RC0   
Hardware: All   
OS: All   
Whiteboard:

Description Paul Webster CLA 2010-05-26 13:37:59 EDT
in I20100523-1612

I installed the EMF SDK and opened our /org.eclipse.e4.ui.model.workbench/model/UIElements.ecore file.  If I open the Properties view it shows the correctly selected element, but if I select a different element in the ecore editor, the Properties view is not updated.

PW
Comment 1 Remy Suen CLA 2010-05-26 14:04:04 EDT
If you close and reopen the view, it tracks the selection of views (such as the 'Package Explorer'). It refuses to track the selection of the ecore editor though.
Comment 2 Remy Suen CLA 2010-05-26 16:12:56 EDT
(In reply to comment #1)
> It refuses to track the selection of the ecore editor though.

Actually, it only seems to want to track the "first" view. If I have the 'Navigator' up on restart then try the 'Package Explorer' it doesn't want to work.
Comment 3 Remy Suen CLA 2010-05-27 08:15:58 EDT
If my views are parts instead of placeholders, then it works. Not quite sure why that is affecting this at the moment.
Comment 4 Remy Suen CLA 2010-05-27 10:04:02 EDT
Changes to selections were not being propagated upwards because the selection service was created at the window level but the scoping was done/"blocked" at the perspective level.

I've released a fix and a test.