Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2019-09-26 15:05:38 +0000
committervincent lorenzo2019-10-11 10:47:38 +0000
commitf5074adf13d2b72af978f2fe2c1b05d33f7404da (patch)
treed12aacd8e3b92a0aa2c779c0fec49da91dee3c78 /plugins/infra
parenta50d69ac03f49932b3d7fc44f604ee4282cf84f9 (diff)
downloadorg.eclipse.papyrus-f5074adf13d2b72af978f2fe2c1b05d33f7404da.tar.gz
org.eclipse.papyrus-f5074adf13d2b72af978f2fe2c1b05d33f7404da.tar.xz
org.eclipse.papyrus-f5074adf13d2b72af978f2fe2c1b05d33f7404da.zip
Bug 551057: [Core] Save options changed for notation with bug 549015
Change-Id: If7ab86a67f0afb014502896519084b31265282ee Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/model/NotationModel.java3
-rwxr-xr-xplugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/usecase.md15
2 files changed, 17 insertions, 1 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/model/NotationModel.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/model/NotationModel.java
index 17e69a50b97..7673bc09243 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/model/NotationModel.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/model/NotationModel.java
@@ -12,6 +12,7 @@
* LIFL - Initial API and implementation
* Christian W. Damus - bugs 485220, 496299
* Nicolas FAUVERGUE (CEA-LIST) nicolas.fauvergue@cea.fr - bug 549015
+ * Vincent LORENZO (CEA-LIST) vincent.lorenzo@cea.fr - bug 551057
*****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.common.model;
@@ -48,7 +49,7 @@ public class NotationModel extends AbstractModelWithSharedResource<Diagram> impl
*
*/
public NotationModel() {
-
+ super(ModelKind.master);
}
/**
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/usecase.md b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/usecase.md
new file mode 100755
index 00000000000..b32f2c1adc6
--- /dev/null
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/usecase.md
@@ -0,0 +1,15 @@
+IModel is used to represent EMF Resource
+IModel classes are in charge to manage the save of these resources
+
+
+
+AbstractModelWithSharedResource
+This class must be used when several elements (Diagram and Table for example) are saved in the same EMF Resource.
+
+I suppose that the AbstractModelWithSharedResource must be defined as master and the others must be slave (see enumeration org.eclipse.papyrus.infra.core.resource.AbstractModelWithSharedResource.ModelKind).
+This is the purpose of the patch for the bug 551057.
+
+The method resource#save is called with the null parameter. It is not a problem, because during the loading each resource is configured with default load and save options. So if this configuration is well done, all will work fine.
+
+
+

Back to the top