You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the command stack is empty (i.e. no commands ever executed) or flushed, the WorkspaceCommandStackImpl#isSaveNeeded will still return true, which surely is not correct.
Even worse, calling #saveIsDone first doesn't help.
The problem is probably due to savedContext being null, and remaining null even after the #saveIsDone call when there is no undo operation on the stack. Naturally, this is exactly the case when no commands were executed yet.
This behaviour seems intended but I do not understand why, as it looks just plain wrong to me.
It seems there might actually be a bug with this thing: after executing some commands and saving, if you undo all commands, then do #saveIsDone, the savedContext is not set to null, and #isSaveNeeded will be true, even though the save was done.
Hi,
I'll try to have a look in april, but will not have time before that.
Dimo, what command did you try and what kind of errors did Gerrit throw at you? If you've not contributed Gerrit patches before, it requires some non-obvious steps: https://wiki.eclipse.org/Gerrit has all the details on how to set things up.
Eclipse EMF Transaction is moving away from this bugs.eclipse.org issue tracker to https://github.com/eclipse/emf-transaction.
If this issue is relevant to you and still present in the latest release:
* Create a new issue at https://github.com/eclipse/emf-transaction/issues/.
* Use as title in GitHub the title of this Bugzilla ticket (may include the bug number or not, at your own convenience)
* In the GitHub description, start with a link to this bugzilla ticket
* Optionally add new content to the description if it can helps towards resolution
* Update bugzilla ticket
* Add to "See also" property (up right column) the link to the newly created GitHub issue
* Add a comment "Migrated to <link-to-newly-created-GitHub-issue>"
* Set status as CLOSED MOVED
All issues that remain open will be automatically closed next week or so. Then the Bugzilla component for EMF Transaction will be archived and made read-only.
The text was updated successfully, but these errors were encountered: