| Summary: | [Compatibility] command service refreshElements(*) not implemented | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Paul Webster <pwebster> | ||||||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | Paul Webster <pwebster> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | emoffatt, remy.suen, sbushkov | ||||||||
| Version: | 4.2 | ||||||||||
| Target Milestone: | 4.2 M6 | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Whiteboard: | |||||||||||
| Bug Depends on: | 374289 | ||||||||||
| Bug Blocks: | 366554 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Paul Webster
*** Bug 371821 has been marked as a duplicate of this bug. *** Created attachment 211760 [details]
Patch
Need slave services to ensure that the registered element updaters are removed when the window gets disposed.
The code in MakeHandlersGo is suspect but does seem to work. All seven tests in CommandCallbackTest are green anyway.
That's probably half of the loop. But we converted most CCIs to HCIs in 4.x, so we probably need some kind of register pattern similar to what we do in the CCI constructor for the MHMIs and MHTIs. Either in the HCI (but abstracted because HCI can't see the 3.x command service) or by walking the model at some point from org.eclipse.ui.workbench. Then the handler calls methods on the UIElement which updates the model element which is then rendered correctly. Ta Da! PW Created attachment 211804 [details] Patch v02 (In reply to comment #3) > Either in the HCI (but abstracted because HCI can't see the 3.x command > service) or by walking the model at some point from org.eclipse.ui.workbench. First approach seemed more straightforward than the other. Created attachment 211815 [details]
Patch v03
Fix pushed to master. Made several mistakes. :( http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=333efacfbed0758bca5e72165f0210bb2c2cfc53 http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=5e990a6d8eb60055fcd0701498d8d4f3fb0479e2 http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=53dbd3380d9e134699d650c65e9b1062886d0332 Verified by source code inspection with I20120312-1730. |