commit | a730d4872145e47801ece9ac9384c0f97c020f7b | [log] [tgz] |
---|---|---|
author | jsholl <jsholl> | Tue Nov 10 21:53:15 2009 +0000 |
committer | jsholl <jsholl> | Tue Nov 10 21:53:15 2009 +0000 |
tree | 78516b45b33d1f0d52dc63eff1eb28216b994462 | |
parent | 35596a6090647a2dceda2f76e2ef444c9644f2d4 [diff] |
[293586] org.eclipse.wst.common.component file incorrectly marked as need to be written
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java index a1fb0ab..14d0eae 100644 --- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java +++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/StructureEdit.java
@@ -378,7 +378,7 @@ public void saveIfNecessary(IProgressMonitor aMonitor) { if (isReadOnly) throwAttemptedReadOnlyModification(); - else if (validateEdit().isOK()) { + else if (structuralModel.isDirty() && validateEdit().isOK()) { if (!structuralModel.isDisposed()) structuralModel.saveIfNecessary(aMonitor, this); }