Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatalin2008-05-27 08:28:10 -0400
committerashatalin2008-05-27 08:28:10 -0400
commitb80763270b8c80eefa093d3e13efa3b527ae5134 (patch)
tree76310042f3686fc30328ed84d1ddcd6a7c0d8243 /plugins/org.eclipse.gmf.graphdef.codegen/templates/attr
parente65c985de3512160b4495d303f79c573b100cbe2 (diff)
downloadorg.eclipse.gmf-tooling-b80763270b8c80eefa093d3e13efa3b527ae5134.tar.gz
org.eclipse.gmf-tooling-b80763270b8c80eefa093d3e13efa3b527ae5134.tar.xz
org.eclipse.gmf-tooling-b80763270b8c80eefa093d3e13efa3b527ae5134.zip
[233205] - Support Polyline figure in .gmfgraph editor
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen/templates/attr')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt
index 5f8f472c6..f12ecebab 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/attr/Shape.xpt
@@ -17,7 +17,7 @@ org.eclipse.draw2d.Shape
private boolean fill = true, outline = true, xorFill, xorOutline;
«ENDREM»
«DEFINE shapeAttrs(EString figureVarName) FOR Shape-»
-«IF !fill»«EXPAND fill(figureVarName)»«ENDIF-»
+«EXPAND fill(figureVarName)-»
«IF xorFill»«EXPAND xorFill(figureVarName)»«ENDIF-»
«IF !outline»«EXPAND outline(figureVarName)»«ENDIF-»
«IF xorOutline»«EXPAND xorOutline(figureVarName)»«ENDIF-»
@@ -26,7 +26,13 @@ org.eclipse.draw2d.Shape
«ENDDEFINE»
«DEFINE fill(EString figureVarName) FOR Shape-»
-«figureVarName».setFill(«fill»);
+«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-»

Back to the top