Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2013-10-01 17:57:37 -0400
committerMartin Taal2013-10-01 17:57:37 -0400
commitc63702a59959a8a42b6883a9ad60900e93657d7e (patch)
treeaaa2aa552332c946e08c94b8ae64d3a4575971e8
parent4e158036e521dc4c44d9e5ca538a5242b1ebb1f3 (diff)
downloadorg.eclipse.emf.teneo-c63702a59959a8a42b6883a9ad60900e93657d7e.tar.gz
org.eclipse.emf.teneo-c63702a59959a8a42b6883a9ad60900e93657d7e.tar.xz
org.eclipse.emf.teneo-c63702a59959a8a42b6883a9ad60900e93657d7e.zip
[409720] - [Teneo] provide a setting to disable validations when StoreResource.save() is called
-rwxr-xr-xcore/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/resource/StoreResource.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/resource/StoreResource.java b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/resource/StoreResource.java
index fd20628f6..1145f1930 100755
--- a/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/resource/StoreResource.java
+++ b/core/org.eclipse.emf.teneo/src/org/eclipse/emf/teneo/resource/StoreResource.java
@@ -444,6 +444,9 @@ public abstract class StoreResource extends ResourceImpl {
if (options == null || !options.containsKey(SKIP_VALIDATION_ON_SAVE)) {
return true;
}
+ if (options.get(SKIP_VALIDATION_ON_SAVE) instanceof Boolean) {
+ return !((Boolean) options.get(SKIP_VALIDATION_ON_SAVE));
+ }
final String value = (String) options.get(SKIP_VALIDATION_ON_SAVE);
if ("true".equals(value.trim().toLowerCase())) {
return false;

Back to the top