Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 334035

Summary: improve textual representation of attribute values in tooltips and notifications
Product: z_Archived Reporter: Benjamin Muskalla <b.muskalla>
Component: MylynAssignee: Mylyn Inbox <mylyn-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: enhancement    
Priority: P2 CC: steffen.pingel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Benjamin Muskalla CLA 2011-01-11 16:09:19 EST
It would be great to intercep the generation of diffs for taskdata that are shown as notifications. Especially interesting is the interception of the value representation. Imagine you have HTML as description attribute which is nicely formatted with the corresponding attribute editor. In the notication, you see the raw value (eg. html tags). It would be good to have a hook that allows to provide a "textual" representation of the attribute values (maybe as callback on TaskAttributeMapper).
Comment 1 Steffen Pingel CLA 2011-01-11 17:42:41 EST
Have you tried overriding getValueLabel() in TaskAttributeMapper?
Comment 2 Benjamin Muskalla CLA 2011-01-11 18:39:46 EST
Thanks for the hint. In the end, it is getValueLabels (plural) you need to override to get the expected results for the notifications. I'm just not yet sure if this doesn't influence other parts of the system. From my side, this solution would be sufficent and we can close this as WORKSFORME.
Comment 3 Steffen Pingel CLA 2011-01-11 19:02:25 EST
Thanks. Feel free to reopen if the current API is not sufficient.