[299057] ValidateEdit called when ArtifactEdit model not dirty
diff --git a/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html b/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html
index a7d74f9..0be5532 100644
--- a/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html
+++ b/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html
@@ -27,6 +27,7 @@
<p>Bug <a href='https://bugs.eclipse.org/292694'>292694</a>. MessageCategory is broken in the validation framework</p>
<p>Bug <a href='https://bugs.eclipse.org/294214'>294214</a>. ProjectResourceSet creation notification while holding lock</p>
<p>Bug <a href='https://bugs.eclipse.org/293586'>293586</a>. org.eclipse.wst.common.component file incorrectly marked as need to be written</p>
+<p>Bug <a href='https://bugs.eclipse.org/299057'>299057</a>. ValidateEdit called when ArtifactEdit model not dirty</p>
</body>
</html>
\ No newline at end of file
diff --git a/features/org.eclipse.wst.common_core.feature.patch/feature.properties b/features/org.eclipse.wst.common_core.feature.patch/feature.properties
index 27019d1..c9d7ae3 100644
--- a/features/org.eclipse.wst.common_core.feature.patch/feature.properties
+++ b/features/org.eclipse.wst.common_core.feature.patch/feature.properties
@@ -41,6 +41,7 @@
Bug https://bugs.eclipse.org/292694 MessageCategory is broken in the validation framework\n\
Bug https://bugs.eclipse.org/294214 ProjectResourceSet creation notification while holding lock\n\
Bug https://bugs.eclipse.org/293586 org.eclipse.wst.common.component file incorrectly marked as need to be written\n\
+Bug https://bugs.eclipse.org/299057 ValidateEdit called when ArtifactEdit model not dirty\n\
\n\
# "copyright" property - text of the "Feature Update Copyright"
copyright=\
diff --git a/plugins/org.eclipse.wst.common.modulecore/META-INF/MANIFEST.MF b/plugins/org.eclipse.wst.common.modulecore/META-INF/MANIFEST.MF
index 98c4e3f..2740cd0 100644
--- a/plugins/org.eclipse.wst.common.modulecore/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.wst.common.modulecore/META-INF/MANIFEST.MF
@@ -3,7 +3,7 @@
Bundle-Name: %Bundle-Name.0
Bundle-Vendor: %provider
Bundle-SymbolicName: org.eclipse.wst.common.modulecore; singleton:=true
-Bundle-Version: 1.1.208.qualifier
+Bundle-Version: 1.1.209.qualifier
Bundle-Activator: org.eclipse.wst.common.componentcore.internal.ModulecorePlugin
Bundle-Localization: plugin
Export-Package: org.eclipse.wst.common.componentcore,
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/ArtifactEdit.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/ArtifactEdit.java
index 77cca57..ddc7438 100644
--- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/ArtifactEdit.java
+++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/ArtifactEdit.java
@@ -476,7 +476,7 @@
public void saveIfNecessary(IProgressMonitor aMonitor) {
if (isReadOnly())
throwAttemptedReadOnlyModification();
- else if (validateEdit().isOK())
+ else if (artifactEditModel.isDirty() && validateEdit().isOK())
artifactEditModel.saveIfNecessary(aMonitor, this);
}