diff options
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/editor/UriEditorInputTester.xtend')
-rw-r--r-- | plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/editor/UriEditorInputTester.xtend | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/editor/UriEditorInputTester.xtend b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/editor/UriEditorInputTester.xtend index b7970e7ae81..af7b34ee96f 100644 --- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/editor/UriEditorInputTester.xtend +++ b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.codegen.xtend/xtend/xpt/editor/UriEditorInputTester.xtend @@ -1,17 +1,18 @@ /******************************************************************************* * Copyright (c) 2007, 2020 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/ - * + * * SPDX-License-Identifier: EPL-2.0 * * Contributors: * Alexander Shatalin (Borland) - initial API and implementation * Michael Golubev (Montages) - #386838 - migrate to Xtend2 * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174 + * Etienne Allogo (ARTAL) - etienne.allogo@artal.fr - Bug 569174 : L1.2 clean up *****************************************************************************/ package xpt.editor @@ -19,12 +20,14 @@ import com.google.inject.Inject import org.eclipse.papyrus.gmf.codegen.gmfgen.GenEditorGenerator import org.eclipse.papyrus.gmf.codegen.gmfgen.GenNavigator import xpt.Common +import xpt.CodeStyle /** * FIXME: [MG] why here? move to .navigator? */ @com.google.inject.Singleton class UriEditorInputTester { @Inject extension Common; + @Inject extension CodeStyle; def className(GenNavigator it) '''«uriInputTesterClassName»''' @@ -37,18 +40,17 @@ import xpt.Common def UriEditorInputTester(GenNavigator it) ''' «copyright(editorGen)» package «packageName(it)»; - + «generatedClassComment» public class «className(it)» extends org.eclipse.core.expressions.PropertyTester { - + «test(editorGen)» - - «additions(it)» } ''' def test(GenEditorGenerator it) ''' «generatedMemberComment» + «overrideC» public boolean test(Object receiver, String method, Object[] args, Object expectedValue) { if (false == receiver instanceof org.eclipse.emf.common.ui.URIEditorInput) { return false; @@ -58,6 +60,4 @@ import xpt.Common } ''' - def additions(GenNavigator it) '''''' - } |