Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331975 - Local task is saved without prompt after switching to the context tab
Summary: Local task is saved without prompt after switching to the context tab
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-06 21:26 EST by Sam Davis CLA
Modified: 2015-07-10 20:09 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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