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

Bug 516080

Summary: AdaptableScopes.leave(IAdaptable) should re-enter previous scopes.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF CommonAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 1.0.0   
Target Milestone: 5.0.0 (Oxygen) M7   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 516075    

Description Alexander Nyßen CLA 2017-05-03 02:53:29 EDT
When leaving scopes for a given IAdaptable, the previous state should be restored, i.e. the previously entered scopes should be re-entered, until explicitly left. To enable this behavior, AdaptableScopes should maintain an internal stack.
Comment 1 Alexander Nyßen CLA 2017-05-03 02:58:38 EDT
Added an internal stack to AdaptableScopes and ensured it re-enters previously entered scopes when leaving the last one. Added a consistency check to enforce that only the last entered scope may be left.

Resolving as fixed in 5.0.0 M7.