| Summary: | Investigate removal of AbstractFXContentPart. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Matthias Wienand <matthias.wienand> |
| Component: | GEF MVC | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | nyssen |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | 453119 | ||
| Bug Blocks: | |||
|
Description
Matthias Wienand
In either way we need to refactor the #getAnchor() mechanism. Up to now, casts to the AbstractFXContentPart class are required. We should ensure, this can be handled properly through the IVisualPart interface. Best would probably be to register a Provider<IFXAnchor> for this purpose. However, to properly do so, we will first offer support for using parameterized types as adapter keys (see bug #453119). Implemented the following changes to get rid of dependencies to the abstract base implementation AbstractFXContentPart. - Removed getAnchor() method from AbstractFXContentPart. - Created ChopBoxAnchorProvider implementation. - Ensured a Provider<? extends IFXAnchor> is now queried to retrieve an anchor implementation by default. These changes are pushed to origin/master and will be available in 3.10.0M4. With the changes applied as part of bug #450250, AbstractFXContentPart does no longer provide any own functionality (it only binds the VR parameter to Node). However, within MvcFxModule, there are still default bindings defined for it. As we have now placed the responsibility to register/unregister nested visuals within AbstractFXContentPart, resolving this as WONTFIX. |