Community
Participate
Working Groups
Our editor synchronizes the contents if the same resource is edited in two (or more) different windows. We keep a reference count, and only prompt to save the resource when the last editor is closed. This logic is broken in Eclipse V2 because the "editor.isSaveOnCloseNeeded()" check is removed from org.eclipse.ui.internal.WorkbenchPage.closeEditor (IEditorPart editor, boolean save). In V1.0.2 it used to have: // Save part. if (save && editor.isSaveOnCloseNeeded() && !getEditorManager().saveEditor(editor, true)) return false; Now in V2 it's changed to: // Save part. if (save && !getEditorManager().saveEditor(editor, true)) return false; We want to understand the reason for the change. Also, please suggest a workaround for this problem. Thanks.
Scenario: 2+ editors in different windows editing the same thing. * In V1 the workbench would prompt to save an editor only when the last editor was closed. * In V2 the behavior was changed and now it prompts the user for every dirty editor. This is not a problem and you do not have to workaround. That is the new intended workbench bahaviour.
Please reopen if you still think this is a problem.
closing invalid bug