Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2017-01-29 17:00:29 +0000
committervincent lorenzo2017-01-30 14:42:38 +0000
commit9fd4cd0f705dbe3f016250f0a08d81181f52d643 (patch)
tree26abc8c84456186a42ab6a0f71caa914f0f07b5d /extraplugins
parent411179e8f2d8e125087d7bbefdf6dc44ed6b3f45 (diff)
downloadorg.eclipse.papyrus-9fd4cd0f705dbe3f016250f0a08d81181f52d643.tar.gz
org.eclipse.papyrus-9fd4cd0f705dbe3f016250f0a08d81181f52d643.tar.xz
org.eclipse.papyrus-9fd4cd0f705dbe3f016250f0a08d81181f52d643.zip
Bug 511294: [Importer][Rhapsody] part multiplicities are ignored by the transformation
Add multiplicty when !=1 for part Change-Id: I5f35bdddcad9394bbcff72c01236594fea73d7d6 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'extraplugins')
-rwxr-xr-xextraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto4
1 files changed, 4 insertions, 0 deletions
diff --git a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto
index 7571fe3812a..a122d2ef1fe 100755
--- a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto
+++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto
@@ -661,6 +661,10 @@ mapping umlrhapsody::IPart::iPartToUMLProperty():uml::Property when {self.oclIsT
//TODO : manage aggregation kind
aggregation:=AggregationKind::composite;
type:=self.otherClass.oclAsType(EObject).map generalMappingToUMLElement().oclAsType(uml::Type);
+ if((not self.multiplicity.oclIsUndefined()) and self.multiplicity<>"1"){
+ lowerValue:=createLowerMultiplicity(self.multiplicity);
+ upperValue:=createUpperMultiplicity(self.multiplicity);
+ }
}
mapping umlrhapsody::IPart::iPartToUMLAssociation():uml::Association when {true}{

Back to the top