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

Bug 266869

Summary: [sandbox] Task Trim widget title should reflect task title changes immediately
Product: z_Archived Reporter: Jörg Thönnes <jtk499>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: minor    
Priority: P3 CC: stepper
Version: 3.1Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 303278    
Attachments:
Description Flags
mylyn/context/zip none

Description Jörg Thönnes CLA 2009-03-03 10:42:52 EST
If I change the task title (here: Trac) the title displayed in the Task Trim widget does not update.

Toggling the activation refreshes the title.
Comment 1 Jörg Thönnes CLA 2009-03-03 14:18:11 EST
Steffen, I would be happy to help.

Is this a difficult change? Could you provide some initial context?

Thanks, Jörg
Comment 2 Steffen Pingel CLA 2009-03-03 15:58:12 EST
I think TaskTrimWidget needs to register a listener with the TaskList to get notified when task properties change. Something along these lines:

	private final ITaskListChangeListener TASKLIST_CHANGE_LISTENER = new ITaskListChangeListener() {

		public void containersChanged(Set<TaskContainerDelta> containers) {
			for (TaskContainerDelta delta : containers) {
				if (delta.getKind() == TaskContainerDelta.Kind.CONTENT && delta.getElement() == activeTask) {
					update();
				}
			}
		}
	};
	
	TasksUiPlugin.getTaskList().addChangeListener(listener);
Comment 3 Steffen Pingel CLA 2009-03-03 15:58:14 EST
Created attachment 127383 [details]
mylyn/context/zip
Comment 4 Jörg Thönnes CLA 2010-03-16 13:29:39 EDT
Will this implemented after bug 303278?
Comment 5 Steffen Pingel CLA 2010-03-16 14:20:01 EDT
Should be simple enough.
Comment 6 Steffen Pingel CLA 2010-04-15 21:04:37 EDT
Already fixed as part of bug 198844.

*** This bug has been marked as a duplicate of bug 198844 ***