Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Maetzel2004-03-08 18:19:14 +0000
committerKai Maetzel2004-03-08 18:19:14 +0000
commite212dbc6275b8c4a4d48756642ca77076aae0373 (patch)
tree4f916a0269975edfe52ad6ad1d2e5188f2068bcd /org.eclipse.ui.editors
parent90b71021b94478376b902fb171d9286dda752d05 (diff)
downloadeclipse.platform.text-e212dbc6275b8c4a4d48756642ca77076aae0373.tar.gz
eclipse.platform.text-e212dbc6275b8c4a4d48756642ca77076aae0373.tar.xz
eclipse.platform.text-e212dbc6275b8c4a4d48756642ca77076aae0373.zip
restore markers on revert
Diffstat (limited to 'org.eclipse.ui.editors')
-rw-r--r--org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java
index c0eb705e2..565642573 100644
--- a/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java
+++ b/org.eclipse.ui.editors/src/org/eclipse/ui/editors/text/TextFileDocumentProvider.java
@@ -575,6 +575,11 @@ public class TextFileDocumentProvider implements IDocumentProvider, IDocumentPr
*/
protected void execute(IProgressMonitor monitor) throws CoreException {
info.fTextFileBuffer.revert(monitor);
+
+ if (info.fModel instanceof AbstractMarkerAnnotationModel) {
+ AbstractMarkerAnnotationModel markerModel= (AbstractMarkerAnnotationModel) info.fModel;
+ markerModel.resetMarkers();
+ }
}
/*
* @see org.eclipse.ui.editors.text.TextFileDocumentProvider.DocumentProviderOperation#getSchedulingRule()

Back to the top