diff options
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/CodeStyle.xtend')
-rw-r--r-- | plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/CodeStyle.xtend | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/CodeStyle.xtend b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/CodeStyle.xtend index f80a3b123f5..2586c16bda9 100644 --- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/CodeStyle.xtend +++ b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/CodeStyle.xtend @@ -1,24 +1,26 @@ -/******************************************************************************* - * Copyright (c) 2013-2020 Borland Software Corporation, CEA LIST, Artal and others +/***************************************************************************** + * Copyright (c) 2015, 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: - * Michael Golubev (Montages) - initial API and implementation - * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174 + * Contributors: + * Michael Golubev (Montages) - initial API and implementation + * Anatoliy Tischenko - Initial API and implementation + * Etienne Allogo (ARTAL) - etienne.allogo@artal.fr - Bug 569174 : 1.4 Merge papyrus extension templates into codegen.xtend *****************************************************************************/ package xpt import com.google.inject.Inject +import com.google.inject.Singleton import org.eclipse.papyrus.gmf.codegen.gmfgen.GenCommonBase import org.eclipse.papyrus.gmf.codegen.gmfgen.GenEditorGenerator -@com.google.inject.Singleton class CodeStyle { +@Singleton class CodeStyle { @Inject extension GenEditorGenerator_qvto @Inject extension Common; /** @@ -30,12 +32,8 @@ import org.eclipse.papyrus.gmf.codegen.gmfgen.GenEditorGenerator «ENDIF» ''' - def overrideI(GenCommonBase xptSelf) ''' - «IF xptSelf.jdkComplianceLevel() > 5» - @Override - «ELSE» - «extraLineBreak» - «ENDIF» + def overrideI(GenCommonBase xptSelf)''' + @Override ''' /** @@ -51,4 +49,4 @@ import org.eclipse.papyrus.gmf.codegen.gmfgen.GenEditorGenerator @SuppressWarnings(«warnToken») «ENDIF» ''' -} +}
\ No newline at end of file |