Skip to content

Commit

Permalink
SOA Migration : partially revert previous commit
Browse files Browse the repository at this point in the history
Change-Id: I8dbf0b63a151bdb43d313a2bb63b5e4bed5f72e1
Signed-off-by: Stéphane Thibaudeau <stephane.thibaudeau@obeo.fr>
  • Loading branch information
sthibaudeau committed Jan 19, 2017
1 parent f742f22 commit ba7b9b4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ public EClassifier getType(EPackage ePackage, String name) {
@Override
public EObject createObject(EFactory eFactory, EClassifier type, MigrationXMLHelper parentHelper) {
if (type == EnvironmentPackage.Literals.REFERENCE) {
return parentHelper.originalCreateObject(eFactory, type);
// In old Environment metamodel, Reference.navigable was false by default
// In new Environment metamodel, Reference.navigable is true by default
EObject createdObject = parentHelper.originalCreateObject(eFactory, type);
if (createdObject instanceof Reference) {
((Reference)createdObject).setNavigable(false);
}
return createdObject;
}
if (type == EnvironmentPackage.Literals.DTO) {
return parentHelper.originalCreateObject(EnvironmentFactory.eINSTANCE, type);
Expand Down

0 comments on commit ba7b9b4

Please sign in to comment.