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/EditHelper.xtend')
-rw-r--r--plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/EditHelper.xtend30
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/EditHelper.xtend b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/EditHelper.xtend
index e1bc9cc03a8..3cde7a70737 100644
--- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/EditHelper.xtend
+++ b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/diagram/edithelpers/EditHelper.xtend
@@ -1,30 +1,31 @@
-/*******************************************************************************
- * Copyright (c) 2006-2020 Borland Software Corporation, CEA LIST, Artal and others
+/*****************************************************************************
+ * Copyright (c) 2006-2013, 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) - #386838 - migrate to Xtend2
- * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174
+ * Contributors:
+ * Dmitry Stadnik (Borland) - initial API and implementation
+ * Michael Golubev (Montages) - #386838 - migrate to Xtend2
+ * Etienne Allogo (ARTAL) - etienne.allogo@artal.fr - Bug 569174 : 1.4 Merge papyrus extension templates into codegen.xtend
*****************************************************************************/
package xpt.diagram.edithelpers;
import com.google.inject.Inject
import org.eclipse.papyrus.gmf.codegen.gmfgen.MetamodelType
import xpt.Common
+import utils.EditHelperUtils_qvto
-public class EditHelper {
+class EditHelper {
@Inject extension Common;
- @Inject BaseEditHelper xptBaseEditHelper;
+ @Inject extension EditHelperUtils_qvto
def className(MetamodelType it) '''«it.editHelperClassName»'''
-
+
def packageName(MetamodelType it) '''«it.diagramElement.getDiagram().editHelpersPackageName»'''
def qualifiedClassName(MetamodelType it) '''«packageName(it)».«className(it)»'''
@@ -34,12 +35,11 @@ public class EditHelper {
def EditHelper(MetamodelType it) '''
«copyright(diagramElement.diagram.editorGen)»
package «packageName(it)»;
-
+
«generatedClassComment»
- public class «className(it)» extends «xptBaseEditHelper.qualifiedClassName(it.diagramElement.diagram)» {
- «additions(it)»
+ public class «editHelperClassName» extends «getBaseEditHelperFullName(diagramElement.getDiagram())» {
+
}
'''
- def additions(MetamodelType it) ''''''
}

Back to the top