From 20530641291e3346a8030a87184591664422f178 Mon Sep 17 00:00:00 2001 From: Arnaud Dieumegard Date: Fri, 10 Dec 2021 11:40:54 +0100 Subject: [PATCH] #141 Fix CDO code generation customization Rely on the Capella Cdo Emf Generation for CDO code generation. Change-Id: I0000000000000000000000000000000000000000 Signed-off-by: Arnaud Dieumegard --- .../META-INF/MANIFEST.MF | 3 ++- .../cdo/ta/definition/CDOForCapellaTargetApplication.java | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/META-INF/MANIFEST.MF b/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/META-INF/MANIFEST.MF index 2bb250dc..242a99b0 100644 --- a/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/META-INF/MANIFEST.MF +++ b/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/META-INF/MANIFEST.MF @@ -10,7 +10,8 @@ Require-Bundle: org.eclipse.ui, org.polarsys.kitalpha.ad.ta, org.polarsys.kitalpha.ad.viewpoint.dsl.cs.text.common, org.polarsys.capella.ta, - org.eclipse.egf.portfolio.genchain.cdo + org.eclipse.egf.portfolio.genchain.cdo, + org.polarsys.capella.extension.genchain Bundle-RequiredExecutionEnvironment: JavaSE-1.8 Bundle-ActivationPolicy: lazy Bundle-Vendor: %providerName diff --git a/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/src/org/polarsys/capella/cdo/ta/definition/CDOForCapellaTargetApplication.java b/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/src/org/polarsys/capella/cdo/ta/definition/CDOForCapellaTargetApplication.java index 414142be..2242d7b7 100644 --- a/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/src/org/polarsys/capella/cdo/ta/definition/CDOForCapellaTargetApplication.java +++ b/vpdsl/plugins/org.polarsys.capella.cdo.ta.definition/src/org/polarsys/capella/cdo/ta/definition/CDOForCapellaTargetApplication.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2016, 2020 Thales Global Services. + * Copyright (c) 2016, 2021 Thales Global Services. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0 @@ -13,8 +13,8 @@ import java.util.List; -import org.eclipse.egf.portfolio.genchain.cdo.CdoGenerationExtension; import org.eclipse.egf.portfolio.genchain.extension.ExtensionHelper; +import org.polarsys.capella.extension.genchain.CapellaCdoGenerationExtension; import org.polarsys.capella.ta.definition.CapellaTargetApplication; @@ -27,7 +27,7 @@ public class CDOForCapellaTargetApplication extends CapellaTargetApplication { @Override public List getGenerationExtensionHelpers() { List generationExtensionHelpers = super.getGenerationExtensionHelpers(); - generationExtensionHelpers.add(new CdoGenerationExtension()); + generationExtensionHelpers.add(new CapellaCdoGenerationExtension()); return generationExtensionHelpers; }