| Summary: | IContentPart, IFeedbackPart, and IHandlePart should be adapted to their viewer | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF MVC | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.wienand |
| Version: | 1.0.0 | ||
| Target Milestone: | 5.0.0 (Oxygen) M4 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 509007 | ||
|
Description
Alexander Nyßen
As adapter injector does postpone adapter injection until the adaptable chain is complete (see bug #506330), closing the chain will change that adapters are not injected before the parent is set on a part. The current content synchronization will not be robust against this and has to be changed, as the anchorage synchronization may not be performed before all parts are linked to their respective parent. I removed the IBehavior parameter from the operation of the content, feedback, and handle part factories. This way, the synchronization can be migrated from ContentBehavior into a SynchronizationSupport delegate (viewer-bound) that can be used also while being inactive. This way, we can move this responsibility to the root respectively content parts. Instead of the parent or root part, it would be best to adapt all parts to their viewer, as this would preserve the current mechanisms while still enabling adaptable scoping. We merged branch bug_506331 into master, so the ContentBehavior is now centralized at the root part, and detachment, removal, addition, and attachment are separate phases during content-part-synchronization. I further ensured that all IVisualParts are now adapted to their viewer, so the adaptable chain is properly now properly closed. Changes pushed to origin/master. Resolving as fixed in 5.0.0 (Oxygen) M4 (final contribution). |