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

Bug 331975

Summary: Local task is saved without prompt after switching to the context tab
Product: z_Archived Reporter: Sam Davis <sam.davis>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: major    
Priority: P2 CC: shawn.minto
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Sam Davis CLA 2010-12-06 21:26:52 EST
# Open a local task
# Edit the private notes. An asterisk appears in the title to indicate the task is dirty.
# Switch to the context tab. The asterisk remains.
# Close the task. There is no prompt to save.
# Reopen the task. The change to the notes has been saved
Comment 1 Steffen Pingel CLA 2010-12-22 18:54:45 EST
Interesting. Thanks for reporting that. The editor invokes commit(false) on the form which is delegated to the parts and causes the undesired save. The idea is to flush everything to the model, probably to give other pages a chance to update the UI from the model.

The task editor basically makes the wrong assumption that the dirty state of the model (or part for that matter) is the same as the dirty state of the editor and committing is the same as saving which is not the intended use of the forms API. We'll need to review editor parts and fix tracking of the dirty state and committing for the parts that do not operate on working copies.
Comment 2 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn