diff options
Diffstat (limited to 'plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef.codegen/templates/top/Figure.xpt')
-rw-r--r-- | plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef.codegen/templates/top/Figure.xpt | 109 |
1 files changed, 0 insertions, 109 deletions
diff --git a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef.codegen/templates/top/Figure.xpt b/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef.codegen/templates/top/Figure.xpt deleted file mode 100644 index 7b14a0ac7f7..00000000000 --- a/plugins/toolsmiths/gmf-tooling/org.eclipse.papyrus.gmf.graphdef.codegen/templates/top/Figure.xpt +++ /dev/null @@ -1,109 +0,0 @@ -/****************************************************************************** - * Copyright (c) 2006, 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: - * Artem Tikhomirov (Borland) - initial API and implementation - * Aurelien Didier (ARTAL) - aurelien.didier51@gmail.com - Bug 569174 - *****************************************************************************/ - -«IMPORT 'http://www.eclipse.org/papyrus/gmf/2020/GraphicalDefinition'» - -«EXTENSION Util» - -«DEFINE ClassBody(cuName : String) FOR gmfgraph::Figure»«ERROR 'abstract ClassBody(Figure)'»«ENDDEFINE» - -«DEFINE ClassBody(cuName : String) FOR gmfgraph::FigureRef-» -«EXPAND ClassBody(cuName, self) FOR figure-» -«ENDDEFINE» - -«DEFINE ClassBody(cuName : String) FOR gmfgraph::RealFigure-» -«EXPAND ClassBody(cuName, null) FOR self-» -«ENDDEFINE» - -«DEFINE ClassBody(cuName : String, figureRef : gmfgraph::FigureRef) FOR gmfgraph::RealFigure-» - /** - * @generated - */ - public «cuName»() { -«clearBorders()-» - «EXPAND Layout::Init('this') FOR layout-» - «EXPAND Attrs::Init('this')-» -«IF not figureRef->isEmpty()-» - // «figureRef.figure.name» - // Process FigureRef details - «EXPAND Layout::Init('this') FOR figureRef.layout-» - «EXPAND Attrs::Init('this') FOR figureRef-» -«ENDIF-» -«IF not (children)[gmfgraph::Figure]->isEmpty()-» - createContents(); - } -«EXPAND Children::CreateChildren-» -«ELSE-» - } -«ENDIF-» -«EXPAND Border::InitMethods» -«EXPAND Extras::extraMethods» -«EXPAND additions-» -«ENDDEFINE» - -«DEFINE ClassBody(cuName : String, figureRef : gmfgraph::FigureRef) FOR gmfgraph::PolylineConnection-» - /** - * @generated - */ - public «cuName»() { - «EXPAND Attrs::Init('this')» -«LET childrenWithoutDecoration(self) AS childrenWithoutDecorators-» -«IF not childrenWithoutDecorators->isEmpty()-» - createContents(); -«ENDIF-» -«IF hasSourceDecoration(self)-» - setSourceDecoration(createSourceDecoration()); -«ENDIF-» -«IF hasTargetDecoration(self)-» - setTargetDecoration(createTargetDecoration()); -«ENDIF-» - } -«IF not childrenWithoutDecorators->isEmpty()» -«REM» - Copy of Children::CreateChildren with temp workaround to generate child figures for labels only. - Though this is temp workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=193180, I'm not sure - what's the right approach with e.g. decoration as child of a link. -«ENDREM» - /** - * @generated - */ - private void createContents(){ -«EXPAND Children::instantiate(0, self, 'this') FOREACH childrenWithoutDecorators» - } -«ENDIF-» -«IF hasSourceDecoration(self)» - /** - * @generated - */ - private org.eclipse.draw2d.RotatableDecoration createSourceDecoration() { - «EXPAND Decoration::Instantiate('df') FOR sourceDecoration-» - return df; - } -«ENDIF-» -«IF hasTargetDecoration(self)» - /** - * @generated - */ - private org.eclipse.draw2d.RotatableDecoration createTargetDecoration() { - «EXPAND Decoration::Instantiate('df') FOR targetDecoration-» - return df; - } -«ENDIF-» -«ENDLET-» -«EXPAND additions-» -«ENDDEFINE» - -«REM»Our regular way to add smth inside generated class body«ENDREM» -«DEFINE additions FOR gmfgraph::Figure»«ENDDEFINE»
\ No newline at end of file |