Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2017-01-13 09:56:52 -0500
committervincent lorenzo2017-01-13 10:16:17 -0500
commita07c402973c17a0b33cc4eec37daa6cbe4f40820 (patch)
treef40e7847aad09eb10a10c1b7d2f17212f43709c4 /extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto
parent6534cb833f6a5e96a32e9127d0b94a4adea13cae (diff)
downloadorg.eclipse.papyrus-a07c402973c17a0b33cc4eec37daa6cbe4f40820.tar.gz
org.eclipse.papyrus-a07c402973c17a0b33cc4eec37daa6cbe4f40820.tar.xz
org.eclipse.papyrus-a07c402973c17a0b33cc4eec37daa6cbe4f40820.zip
Bug 510444 : [Importer Rhapsody] Minor enhancements for QVTo transformation
Do the work described in the bug : remove useless cast and set visibility only when != from public Change-Id: I1ac36d280766f3dae548a7fd568c1e018edd0dd0 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto')
-rw-r--r--extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto11
1 files changed, 9 insertions, 2 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 c762f6dc4f3..94d9ebf7cea 100644
--- a/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto
+++ b/extraplugins/migration/rhapsody/org.eclipse.papyrus.migration.rhapsody/transform/Rhapsody2PapyrusSemanticElements.qvto
@@ -1023,7 +1023,11 @@ mapping umlrhapsody::IPrimitiveOperation::toOperations(): uml::Operation
};
ownedParameter+=return_param;
};
- visibility:=getVisibility(self.protection);
+ var desiredVisibility := getVisibility(self.protection);
+ if (desiredVisibility != VisibilityKind::public) { //to avoid green + in UML editor
+ visibility:= desiredVisibility
+ };
+
}
@@ -1052,7 +1056,10 @@ mapping umlrhapsody::IAttribute::iAttributeToUMLElement(): uml::Property when {s
}else{
type := self.typeOf [IType]->any(true).oclAsType(IType).map iTypeToUMLElement().oclAsType(Type);
};
- visibility:=getVisibility(self.protection);
+ var desiredVisibility := getVisibility(self.protection);
+ if (desiredVisibility != VisibilityKind::public) { //to avoid green + in UML editor
+ visibility:= desiredVisibility
+ };
var lower:String;
var upper:String;
//a multiplicity has been defined

Back to the top