| Summary: | [UI] Tighten up the handling for an MElementContainer's 'selectedElement' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Eric Moffatt <emoffatt> | ||||||
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | remy.suen | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 4.1 M3 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows XP | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Eric Moffatt
Created attachment 181638 [details]
Patch that enforces the new rules
This is enforced in two ways:
1) The generated model code in ElementContainerImpl has been modified to throw an IllegalArgumentException if the incoming new SE fails any of the following tests:
- It must be a child of the container whose SE is being set
- It must be TBR == true
- It must be Visible == true
As a result of these changes a number of adjustments had to be made to the existing tests, they're all green now and Remy will make any necessary adjustments.
Committed in >20101025. Applied the patch. Ooops!! the 'visible' checks cause minimized stacks to fail because the stack's 'visible' flag is false (to remove it from the regular presentation. See bug 328633. Thanks to Remy for picking this up before it got released... *** Bug 328633 has been marked as a duplicate of this bug. *** Created attachment 181666 [details]
Patch to remove the 'visible' flag tests
Everything else is the same but we'll no longer test the 'visible' flag, it's only necessary that the TBR be == true...
Committed in >20101025. Applied the second patch. *** Bug 298192 has been marked as a duplicate of this bug. *** |