Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2017-01-23 20:39:21 +0000
committervincent lorenzo2017-01-24 16:46:40 +0000
commit8f242fb8f157e50f25f03de822996cc903a411cd (patch)
tree7180f22aaa77a562f946f20c6984429a243d13b0 /extraplugins
parentc17f31093db8affdbb1514e477a2e59e6830b224 (diff)
downloadorg.eclipse.papyrus-8f242fb8f157e50f25f03de822996cc903a411cd.tar.gz
org.eclipse.papyrus-8f242fb8f157e50f25f03de822996cc903a411cd.tar.xz
org.eclipse.papyrus-8f242fb8f157e50f25f03de822996cc903a411cd.zip
Bug 510904: [Importer][Rhapsody] Port multiplicity is not set when [1..1]
Change-Id: If119a4bbab4a1fe956cf39ba14839bc8ed901917 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.qvto17
1 files changed, 12 insertions, 5 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 0ccf09b4dc7..03a5c5dde77 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
@@ -685,12 +685,17 @@ mapping umlrhapsody::IRelation::iRelationToUMLProperty(): uml::Property when {se
aggregation:=AggregationKind::composite;
if (not sysPort.otherClass.oclIsUndefined()){
type := sysPort.otherClass [IType]->any(true).oclAsType(IType).map iTypeToUMLElement().oclAsType(Type);
+ }elif(sysPort.otherClass.oclIsKindOf(IClass)){
+ type := sysPort.otherClass.oclAsType(IClass).map toUMLElement().oclAsType(Type);
};
//a multiplicity has been defined
if(not sysPort.multiplicity.oclIsUndefined()){
lowerValue:= createLowerMultiplicity(sysPort.multiplicity);
upperValue:= createUpperMultiplicity(sysPort.multiplicity);
- };
+ }else{
+ lowerValue:= createLowerMultiplicity("1");
+ upperValue:= createUpperMultiplicity("1");
+ }
}
/**
@@ -713,7 +718,10 @@ mapping umlrhapsody::IRelation::iRelationToSysMLPort(): uml::Port when {self.isR
if(not sysPort.multiplicity.oclIsUndefined()){
lowerValue:= createLowerMultiplicity(sysPort.multiplicity);
upperValue:= createUpperMultiplicity(sysPort.multiplicity);
- };
+ }else{
+ lowerValue:= createLowerMultiplicity("1");
+ upperValue:= createUpperMultiplicity("1");
+ }
}
@@ -1030,9 +1038,8 @@ mapping umlrhapsody::IAttribute::iAttributeToUMLElement(): uml::Property when {s
if (desiredVisibility != VisibilityKind::public) { //to avoid green + in UML editor
visibility:= desiredVisibility
};
- var lower:String;
- var upper:String;
- //a multiplicity has been defined
+
+ //a multiplicity has been defined
if(not self.multiplicity.oclIsUndefined()){
lowerValue:= createLowerMultiplicity(self.multiplicity);
upperValue:= createUpperMultiplicity(self.multiplicity);

Back to the top