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:
parent
9ee674e447
commit
83c44162bf
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue