Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordstadnik2008-08-12 13:56:32 +0000
committerdstadnik2008-08-12 13:56:32 +0000
commitf634563f89a7831c9383ac8e4be739cc5f60d31a (patch)
tree1cd59e9ab664f64270378490d407c3ee0ebc1a7c /plugins/org.eclipse.gmf.graphdef.codegen
parentc778b5a0e838a4c9977597919b3ad3118376459c (diff)
downloadorg.eclipse.gmf-tooling-f634563f89a7831c9383ac8e4be739cc5f60d31a.tar.gz
org.eclipse.gmf-tooling-f634563f89a7831c9383ac8e4be739cc5f60d31a.tar.xz
org.eclipse.gmf-tooling-f634563f89a7831c9383ac8e4be739cc5f60d31a.zip
[243879] allow to constrain canavs size
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt
index 05ddbb885..f0b0f1533 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Attrs.xpt
@@ -51,6 +51,12 @@
«DEFINE Init(EString figureVarName) FOR gmfgraph::SVGFigure-»
«figureVarName».setURI("«documentURI»");
+«IF noCanvasWidth-»
+«figureVarName».setSpecifyCanvasWidth(false);
+«ENDIF-»
+«IF noCanvasHeight-»
+«figureVarName».setSpecifyCanvasHeight(false);
+«ENDIF-»
«IF areaOfInterest != null-»
«figureVarName».setAreaOfInterest(«EXPAND Instance FOR areaOfInterest»);
«ENDIF-»

Back to the top