Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2004-06-18 14:06:59 +0000
committerDani Megert2004-06-18 14:06:59 +0000
commit64ca59e3caca1192cbbfbcc80be7fbd5189183dc (patch)
tree70b2bf23b78348d7e16cc52ac351f521e79acfe8 /org.eclipse.core.filebuffers
parenta1798867be179daa059ee896a23596ad78d51d34 (diff)
downloadeclipse.platform.text-64ca59e3caca1192cbbfbcc80be7fbd5189183dc.tar.gz
eclipse.platform.text-64ca59e3caca1192cbbfbcc80be7fbd5189183dc.tar.xz
eclipse.platform.text-64ca59e3caca1192cbbfbcc80be7fbd5189183dc.zip
Fixed bug 67164: [validateEdit] validateEdit - prompt when file changed by validateEdit doesn't work
Diffstat (limited to 'org.eclipse.core.filebuffers')
-rw-r--r--org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
index cf1144ce9..de0ffca7d 100644
--- a/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
+++ b/org.eclipse.core.filebuffers/src/org/eclipse/core/internal/filebuffers/ResourceFileBuffer.java
@@ -328,6 +328,8 @@ public abstract class ResourceFileBuffer extends AbstractFileBuffer {
if (fFile.isReadOnly()) {
IWorkspace workspace= fFile.getWorkspace();
fStatus= workspace.validateEdit(new IFile[] { fFile }, computationContext);
+ if (fStatus.isOK())
+ handleFileContentChanged();
}
fIsStateValidated= true;
fManager.fireStateValidationChanged(this, fIsStateValidated);

Back to the top