Community
Participate
Working Groups
When editing *.oclinecore, it is safe to save when there are errors since the errors are in source text. When editing *.ecore, a save with errors stores dummy objects at the errors, which reload as no-error. Prohibit save of errors as *.ecore when editing *.ecore. The user can always save as *.oclinecore if they want to persist work in progress.
Same problem as answered by Ed Merks. "You could use Resource.OPTION_SAVE_ONLY_IF_CHANGED which writes to either an in-memory or file system buffer and then compares it to the existing contents and replaces them only if they're different. If the first part fails, it won't try the second part..."
Pushed to master.
CLOSED after a year in the RESOLVED state.