Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-03-07 16:54:41 +0000
committerCamille Letavernier2014-03-07 16:54:41 +0000
commit38aee3e9caea1f8023102a5a0018540669c337e8 (patch)
tree1834e3a796fecca1a1a3b479cea5c7694bdd3456 /plugins/infra
parent2029d305ac0457f9de0c79eeadf5865bc90d1e89 (diff)
downloadorg.eclipse.papyrus-38aee3e9caea1f8023102a5a0018540669c337e8.tar.gz
org.eclipse.papyrus-38aee3e9caea1f8023102a5a0018540669c337e8.tar.xz
org.eclipse.papyrus-38aee3e9caea1f8023102a5a0018540669c337e8.zip
Bug 386118 - [EMF Facet] Papyrus should progressively support EMF Facet
0.2 Fix compile errors
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/EMFLogicalModel.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/EMFLogicalModel.java b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/EMFLogicalModel.java
index 749da273e49..cb3098852ec 100644
--- a/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/EMFLogicalModel.java
+++ b/plugins/infra/core/org.eclipse.papyrus.infra.core/src/org/eclipse/papyrus/infra/core/resource/EMFLogicalModel.java
@@ -18,12 +18,13 @@ import java.util.Set;
import org.eclipse.emf.common.util.URI;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.resource.Resource;
+import org.eclipse.papyrus.infra.core.Activator;
/**
* An IModel which is an abstraction for a set of consistent EMF Resources
- *
+ *
* @author Camille Letavernier
- *
+ *
*/
public abstract class EMFLogicalModel extends AbstractBaseModel implements IEMFModel {
@@ -53,7 +54,11 @@ public abstract class EMFLogicalModel extends AbstractBaseModel implements IEMFM
public void saveModel() throws IOException {
for(Resource resource : getResources()) {
if(!getModelManager().getTransactionalEditingDomain().isReadOnly(resource) && !ModelUtils.resourceFailedOnLoad(resource)) {
- resource.save(null);
+ try {
+ resource.save(null);
+ } catch (Exception ex) {
+ Activator.log.error(ex);
+ }
}
}
}

Back to the top