Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/BaseEditHelper.xtend')
-rw-r--r--plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/BaseEditHelper.xtend69
1 files changed, 16 insertions, 53 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/BaseEditHelper.xtend b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/BaseEditHelper.xtend
index da08d84f74f..3d6dec584aa 100644
--- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/BaseEditHelper.xtend
+++ b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/BaseEditHelper.xtend
@@ -1,18 +1,19 @@
-/*******************************************************************************
- * Copyright (c) 2006, 2020 Borland Software Corporation, CEA LIST, Artal and others
- *
+/*****************************************************************************
+ * Copyright (c) 2006, 2017, 2021 Borland Software Corporation, CEA LIST, Artal and others
+ *
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
- * https://www.eclipse.org/legal/epl-2.0/
- *
+ * https://www.eclipse.org/legal/epl-2.0/
+ *
* SPDX-License-Identifier: EPL-2.0
*
- * Contributors:
- * Dmitry Stadnik (Borland) - initial API and implementation
- * Michael Golubev (Montages) - #368169 - extract common code to GMFT-specific runtime
- * - #386838 - migrate to Xtend2
- * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Michael Golubev (Montages) - #368169 - extract common code to GMFT-specific runtime
+ * - #386838 - migrate to Xtend2
+ * Benoit Maggi (CEA LIST) benoit.maggi@cea.fr - Initial API and implementation
+ * Etienne Allogo (ARTAL) - etienne.allogo@artal.fr - Bug 569174 : 1.4 Merge papyrus extension templates into codegen.xtend
*****************************************************************************/
package xpt.diagram.edithelpers;
@@ -20,13 +21,13 @@ import com.google.inject.Inject
import org.eclipse.papyrus.gmf.codegen.gmfgen.GenDiagram
import xpt.Common
-public class BaseEditHelper {
+ class BaseEditHelper {
@Inject extension Common;
def extendsClause(GenDiagram it) '''extends «superClass(it)»'''
- def superClass(GenDiagram it) '''org.eclipse.gmf.tooling.runtime.edit.helpers.GeneratedEditHelperBase'''
-
+ def superClass(GenDiagram it) '''org.eclipse.papyrus.infra.gmfdiag.tooling.runtime.edit.helpers.GeneratedEditHelperBase'''
+
def className(GenDiagram it) '''«it.baseEditHelperClassName»'''
def packageName(GenDiagram it) '''«it.editHelpersPackageName»'''
@@ -38,49 +39,11 @@ public class BaseEditHelper {
def BaseEditHelper(GenDiagram it) '''
«copyright(editorGen)»
package «packageName(it)»;
-
+
«generatedClassComment()»
public class «className(it)» «extendsClause(it)» {
-
- «attributes(it)»
-
- «getEditHelperAdvice(it)»
-
- «getInsteadCommand(it)»
-
- «getCreateCommand(it)»
-
- «getCreateRelationshipCommand(it)»
-
- «getDestroyElementCommand(it)»
-
- «getDestroyReferenceCommand(it)»
-
- «additions(it)»
+
}
'''
- def editPolicyCommandConstant(GenDiagram it) '''org.eclipse.gmf.tooling.runtime.edit.helpers.GeneratedEditHelperBase.EDIT_POLICY_COMMAND'''
-
- def contextElementTypeConstant(GenDiagram it) '''org.eclipse.gmf.tooling.runtime.edit.helpers.GeneratedEditHelperBase.CONTEXT_ELEMENT_TYPE'''
-
- def attributes(GenDiagram it) ''''''
-
- /*
- We don't have anything to generate here since common code had extracted to GMFT-runtime as part of #368169
- */
- def getEditHelperAdvice(GenDiagram it) ''''''
-
- def getInsteadCommand(GenDiagram it) ''''''
-
- def getCreateCommand(GenDiagram it) ''''''
-
- def getCreateRelationshipCommand(GenDiagram it) ''''''
-
- def getDestroyElementCommand(GenDiagram it) ''''''
-
- def getDestroyReferenceCommand(GenDiagram it) ''''''
-
- def additions(GenDiagram it) ''''''
-
}

Back to the top