File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/editor/targetdefinition Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 104104import org .eclipse .ui .forms .widgets .ScrolledForm ;
105105import org .eclipse .ui .part .FileEditorInput ;
106106import org .eclipse .ui .progress .UIJob ;
107+ import org .eclipse .ui .texteditor .ITextEditor ;
107108import org .osgi .service .event .Event ;
108109import org .osgi .service .event .EventHandler ;
109110import org .xml .sax .SAXException ;
@@ -331,6 +332,10 @@ public void doRevert() {
331332 }
332333 }
333334 }
335+
336+ pages .stream ().filter (ITextEditor .class ::isInstance ).map (ITextEditor .class ::cast ).filter (ITextEditor ::isDirty )
337+ .forEach (ITextEditor ::doRevertToSaved );
338+
334339 setActivePage (getActivePage ());
335340 editorDirtyStateChanged ();
336341 }
You can’t perform that action at this time.
0 commit comments