1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Only auto-save dirty editors. Some listening clients (e.g. perforce team provider plug-in) can open a dialog for each touched file.

This commit is contained in:
Andrew Ferguson 2008-03-17 15:27:24 +00:00
parent 9ee674e447
commit 83c44162bf

View file

@ -146,7 +146,9 @@ public class EditorReopener implements IDocCommentOwnershipListener {
for(int j=0; j<editorParts.length; j++) {
IEditorPart oldPart= editorParts[j];
oldPart.doSave(new NullProgressMonitor());
if(oldPart.isDirty()) {
oldPart.doSave(new NullProgressMonitor());
}
window.getActivePage().closeEditor(oldPart, false);
IEditorInput oldInput= oldPart.getEditorInput();