| Summary: | [api] framework should provide facility to update attribute editors when the TaskDataModel changes | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Sam Davis <sam.davis> | ||||||||||||||
| Component: | Mylyn | Assignee: | Sam Davis <sam.davis> | ||||||||||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||||||||||
| Severity: | enhancement | ||||||||||||||||
| Priority: | P3 | CC: | david.shepherd, steffen.pingel | ||||||||||||||
| Version: | unspecified | Keywords: | contributed, noteworthy | ||||||||||||||
| Target Milestone: | 3.6 | ||||||||||||||||
| Hardware: | PC | ||||||||||||||||
| OS: | Windows 7 | ||||||||||||||||
| Whiteboard: | |||||||||||||||||
| Bug Depends on: | 345211, 345212, 345909 | ||||||||||||||||
| Bug Blocks: | |||||||||||||||||
| Attachments: |
|
||||||||||||||||
|
Description
Sam Davis
Created attachment 193395 [details]
proposed approach
Steffen, here is what I'm thinking of doing. If this seems reasonable to you, I will make the subclasses implement refresh, remove unneeded listeners and submit a patch.
Created attachment 193396 [details]
mylyn/context/zip
Agreed that the framework should invoke the refresh method. I'm not a big fan of a supportsRefresh() method but we may need it to maintain backwards compatibility. Created attachment 194863 [details]
patch
Steffen, here's a patch. This will update both the contents and options (where applicable) of the patched attribute editors. They are all pretty carefully tested.
Created attachment 194864 [details]
mylyn/context/zip
Created attachment 195156 [details]
framework patch
Here's the part of the patch for the framework.
Thanks for the excellent patch, Sam! I have applied the changes to head. Only minor modification I made was to change shouldAutoRefresh() into a protected method. Let me know if there is a reason to make it public and we can reconsider. I discovered a problem that causes jumping of the cursor when entering text and broke undo. Created attachment 195662 [details]
fix
I have committed a fix to ignores model events that were generated by the attribute editor itself. *** Bug 297545 has been marked as a duplicate of this bug. *** |