Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2009-03-16 14:21:33 -0400
committerashatalin2009-03-16 14:21:33 -0400
commit55265b6171ba79489e65af18dec2a5757b98d2ea (patch)
tree4cbf2925d96f77d8d5b8eda0357d9a07e60c0d3c /plugins/org.eclipse.gmf.graphdef.codegen/templates/attr
parent50326ee3041207cae3b11f73c7722c4b0760c303 (diff)
downloadorg.eclipse.gmf-tooling-55265b6171ba79489e65af18dec2a5757b98d2ea.tar.gz
org.eclipse.gmf-tooling-55265b6171ba79489e65af18dec2a5757b98d2ea.tar.xz
org.eclipse.gmf-tooling-55265b6171ba79489e65af18dec2a5757b98d2ea.zip
Removing old templates - these files were moved to oeg.templates.legacy plugin.
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/attr')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.xpt37
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Decoration.xpt53
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt95
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt56
4 files changed, 0 insertions, 241 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.xpt
deleted file mode 100644
index 974fb3977..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/CustomClass.xpt
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2006 Borland Software Corporation
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Artem Tikhomirov (Borland) - initial API and implementation
- */
-«IMPORT "http://www.eclipse.org/gmf/2006/GraphicalDefinition"»
-«IMPORT "http://www.eclipse.org/emf/2002/Ecore"»
-«EXTENSION Util»
-
-«DEFINE Init(EString instanceVarName) FOR gmfgraph::CustomClass»
-«EXPAND customAttribute(instanceVarName) FOREACH attributes»
-«ENDDEFINE»
-
-«DEFINE customAttribute(EString instanceVarName) FOR gmfgraph::CustomAttribute»
-«EXPAND customAttrValueImpl-»
-«IF directAccess»
-«instanceVarName».«name» = «EXPAND customAttrValue»;
-«ELSE»
-«instanceVarName».set«name.toFirstUpper()»(«EXPAND customAttrValue»);
-«ENDIF»
-«ENDDEFINE»
-
-«DEFINE customAttrValueImpl FOR gmfgraph::CustomAttribute»
-«IF multiStatementValue-»
-«messageFormat(value, {"attr" + name.toFirstUpper()})-»
-«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE customAttrValue FOR gmfgraph::CustomAttribute»
-«IF multiStatementValue»attr«name.toFirstUpper()»«ELSE-»«value»«ENDIF-»
-«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Decoration.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Decoration.xpt
deleted file mode 100644
index 98a90f00e..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Decoration.xpt
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) 2006 Borland Software Corporation
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Artem Tikhomirov (Borland) - initial API and implementation
- */
-«IMPORT "http://www.eclipse.org/gmf/2006/GraphicalDefinition"»
-«IMPORT "http://www.eclipse.org/emf/2002/Ecore"»
-«IMPORT "templates"»
-«EXTENSION Util»
-
-«DEFINE polylineAttrs(String figureVarName) FOR gmfgraph::PolylineDecoration-»
-«EXPAND attr::Shape::shapeAttrs(figureVarName)-»
-«EXPAND attr::Figure::figureAttrs(figureVarName)-»
-«EXPAND templatePoints(figureVarName)-»
-«EXPAND scale(figureVarName)-»
-«ENDDEFINE»
-
-«DEFINE polylineAttrs(String figureVarName) FOR gmfgraph::PolygonDecoration-»
-«EXPAND attr::Shape::shapeAttrs(figureVarName)-»
-«EXPAND attr::Figure::figureAttrs(figureVarName)-»
-«EXPAND templatePoints(figureVarName)-»
-«EXPAND scale(figureVarName)-»
-«ENDDEFINE»
-
-«DEFINE templatePoints(String figureVarName) FOR gmfgraph::Polyline-»
-«IF !template.isEmpty()-»
-org.eclipse.draw2d.geometry.PointList pl = new org.eclipse.draw2d.geometry.PointList();
-«EXPAND templatePoint("pl") FOREACH template-»
-«figureVarName».setTemplate(pl);
-«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE templatePoint(String pointListVarName) FOR gmfgraph::Point-»
-«pointListVarName».addPoint(«EXPAND MapMode::map»);
-«ENDDEFINE»
-
-«DEFINE scale(String figureVarName) FOR gmfgraph::PolylineDecoration-»
-«IF !template.isEmpty()-»
-«figureVarName».setScale(«EXPAND MapMode::map FOR 7», «EXPAND MapMode::map FOR 3»);
-«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE scale(String figureVarName) FOR gmfgraph::PolygonDecoration-»
-«IF !template.isEmpty()-»
-«figureVarName».setScale(«EXPAND MapMode::map FOR 7», «EXPAND MapMode::map FOR 3»);
-«ENDIF-»
-«ENDDEFINE» \ No newline at end of file
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt
deleted file mode 100644
index 0b42ecbf6..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Figure.xpt
+++ /dev/null
@@ -1,95 +0,0 @@
-/*
- * Copyright (c) 2006 Borland Software Corporation
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Artem Tikhomirov (Borland) - initial API and implementation
- */
-«IMPORT "http://www.eclipse.org/gmf/2006/GraphicalDefinition"»
-«IMPORT "http://www.eclipse.org/emf/2002/Ecore"»
-«IMPORT "templates"»
-«EXTENSION Util»
-
-«DEFINE figureAttrs(EString figureVarName) FOR gmfgraph::Figure-»
-«EXPAND foregroundColor(this, figureVarName) FOR foregroundColor-»
-«EXPAND backgroundColor(this, figureVarName) FOR backgroundColor-»
-«EXPAND font(figureVarName) FOR font-»
-«EXPAND preferredSize(figureVarName) FOR preferredSize-»
-«EXPAND maximumSize(figureVarName) FOR maximumSize-»
-«EXPAND minimumSize(figureVarName) FOR minimumSize-»
-«EXPAND position(figureVarName) FOR location-»
-«EXPAND size(figureVarName) FOR size-»
-«EXPAND insets(figureVarName) FOR insets-»
-«EXPAND Border::Init(figureVarName) FOR border-»
-«ENDDEFINE»
-
-«DEFINE foregroundColor(gmfgraph::Figure figure, String figureVarName) FOR gmfgraph::Color-»
- «figureVarName».setForegroundColor(«EXPAND color(figureVarName.toUpperCase() + "_FORE")»);
-«ENDDEFINE»
-«DEFINE backgroundColor(gmfgraph::Figure figure, String figureVarName) FOR gmfgraph::Color-»
- «figureVarName».setBackgroundColor(«EXPAND color(figureVarName.toUpperCase() + "_BACK")»);
-«ENDDEFINE»
-
-«DEFINE preferredSize(EString figureVarName) FOR gmfgraph::Dimension-»
-«figureVarName».setPreferredSize(new org.eclipse.draw2d.geometry.Dimension(«EXPAND MapMode::map»));
-«ENDDEFINE»
-
-«DEFINE maximumSize(EString figureVarName) FOR gmfgraph::Dimension-»
-«figureVarName».setMaximumSize(new org.eclipse.draw2d.geometry.Dimension(«EXPAND MapMode::map»));
-«ENDDEFINE»
-
-«DEFINE minimumSize(EString figureVarName) FOR gmfgraph::Dimension-»
-«figureVarName».setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(«EXPAND MapMode::map»));
-«ENDDEFINE»
-
-«DEFINE position(String figureVarName) FOR gmfgraph::Point-»
-«figureVarName».setLocation(new org.eclipse.draw2d.geometry.Point(«EXPAND MapMode::map»));
-«ENDDEFINE»
-
-«DEFINE size(EString figureVarName) FOR gmfgraph::Point-»
-«figureVarName».setSize(«EXPAND MapMode::map»);
-«ENDDEFINE»
-
-«DEFINE insets(EString figureVarName) FOR gmfgraph::Insets-»
-«REM»using MarginBorder for insets is not good idea«ENDREM»
-«figureVarName».setBorder(new org.eclipse.draw2d.MarginBorder(«EXPAND MapMode::map»));
-«ENDDEFINE»
-
-«DEFINE font(String figureVarName) FOR gmfgraph::Font»
-«ERROR "This is abstact definition, just to overcome some xpand polymorphism limitations"»
-«ENDDEFINE»
-
-«DEFINE color(String variableName) FOR gmfgraph::Color»
-«ERROR "This is abstact definition, just to overcome some xpand polymorphism limitations"»
-«ENDDEFINE»
-
-«DEFINE color(String variableName) FOR gmfgraph::RGBColor-»
-«variableName-»
-«FILE "" staticFields»
-/**
- * @generated
- */
-static final org.eclipse.swt.graphics.Color «variableName» = new org.eclipse.swt.graphics.Color(null, «red», «green», «blue»);
-«ENDFILE»
-«ENDDEFINE»
-
-«DEFINE color(String variableName) FOR gmfgraph::ConstantColor-»
-org.eclipse.draw2d.ColorConstants.«value.literal-»
-«ENDDEFINE»
-
-«DEFINE font(String figureVarName) FOR gmfgraph::BasicFont-»
-«LET figureVarName.toUpperCase() + "_FONT" AS variableName»
-«figureVarName».setFont(«variableName»);
-«FILE "" staticFields»
-/**
- * @generated
- */
-static final org.eclipse.swt.graphics.Font «variableName» = new org.eclipse.swt.graphics.Font(org.eclipse.swt.widgets.Display.getCurrent(), «IF null == faceName || faceName.trim().length() == 0»org.eclipse.swt.widgets.Display.getDefault().getSystemFont().getFontData()[0].getName()«ELSE»"«faceName»"«ENDIF», «height», org.eclipse.swt.SWT.«style.literal»);
-«ENDFILE»
-«ENDLET»
-«ENDDEFINE»
-
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt
deleted file mode 100644
index f12ecebab..000000000
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * Copyright (c) 2006 Borland Software Corporation
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Artem Tikhomirov (Borland) - initial API and implementation
- */
-«IMPORT "http://www.eclipse.org/gmf/2006/GraphicalDefinition"»
-«IMPORT "http://www.eclipse.org/emf/2002/Ecore"»
-
-«REM»
-org.eclipse.draw2d.Shape
- private boolean fill = true, outline = true, xorFill, xorOutline;
-«ENDREM»
-«DEFINE shapeAttrs(EString figureVarName) FOR Shape-»
-«EXPAND fill(figureVarName)-»
-«IF xorFill»«EXPAND xorFill(figureVarName)»«ENDIF-»
-«IF !outline»«EXPAND outline(figureVarName)»«ENDIF-»
-«IF xorOutline»«EXPAND xorOutline(figureVarName)»«ENDIF-»
-«IF lineWidth != 1»«EXPAND lineWidth(figureVarName)»«ENDIF-»
-«IF lineKind.value != LineKind::LINE_SOLID.value»«EXPAND lineKind(figureVarName)»«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE fill(EString figureVarName) FOR Shape-»
-«IF !fill»«figureVarName».setFill(«fill»);
-«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE fill(EString figureVarName) FOR Polygon-»
-«IF fill»«figureVarName».setFill(«fill»);
-«ENDIF-»
-«ENDDEFINE»
-
-«DEFINE xorFill(EString figureVarName) FOR Shape-»
-«figureVarName».setFillXOR(«xorFill»);
-«ENDDEFINE»
-
-«DEFINE outline(EString figureVarName) FOR Shape-»
-«figureVarName».setOutline(«outline»);
-«ENDDEFINE»
-
-«DEFINE xorOutline(EString figureVarName) FOR Shape-»
-«figureVarName».setOutlineXOR(«xorOutline»);
-«ENDDEFINE»
-
-«DEFINE lineWidth(EString figureVarName) FOR Shape-»
-«figureVarName».setLineWidth(«lineWidth»);
-«ENDDEFINE»
-
-«DEFINE lineKind(EString figureVarName) FOR Shape-»
-«figureVarName».setLineStyle(org.eclipse.draw2d.Graphics.«lineKind.literal»);
-«ENDDEFINE»

Back to the top