Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratikhomirov2007-06-06 17:43:16 +0000
committeratikhomirov2007-06-06 17:43:16 +0000
commit1b1cfde3d5af2b4ab48caa153c610461cf67ee05 (patch)
treea2ee5aba1ee2aa3fb989da4d166e2e30ff23a22f /plugins/org.eclipse.gmf.graphdef.codegen
parent93049e3783998809e58187c456b31fb10f9a03ae (diff)
downloadorg.eclipse.gmf-tooling-1b1cfde3d5af2b4ab48caa153c610461cf67ee05.tar.gz
org.eclipse.gmf-tooling-1b1cfde3d5af2b4ab48caa153c610461cf67ee05.tar.xz
org.eclipse.gmf-tooling-1b1cfde3d5af2b4ab48caa153c610461cf67ee05.zip
[191303] Restore old behavior (adding layout manager) for diagram nodes with inner labels; CCE in xpand's Collection.isEmpty fixed; better formatting for layout generated code
Diffstat (limited to 'plugins/org.eclipse.gmf.graphdef.codegen')
-rw-r--r--plugins/org.eclipse.gmf.graphdef.codegen/templates/Layout.xpt5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Layout.xpt b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Layout.xpt
index 43cf8ce03..91bd9bf9a 100644
--- a/plugins/org.eclipse.gmf.graphdef.codegen/templates/Layout.xpt
+++ b/plugins/org.eclipse.gmf.graphdef.codegen/templates/Layout.xpt
@@ -73,14 +73,13 @@
«ENDLET»
«ENDDEFINE»
-«DEFINE alignment(EBoolean forceSingleLine) FOR gmfgraph::Alignment»
+«DEFINE alignment(EBoolean forceSingleLine) FOR gmfgraph::Alignment-»
«IF value == Alignment::BEGINNING.value-»
«IF forceSingleLine»ALIGN_TOPLEFT«ELSE»ALIGN_LEFTTOP«ENDIF-»
«ELSEIF value == Alignment::END.value-»
«IF forceSingleLine»ALIGN_BOTTOMRIGHT«ELSE»ALIGN_RIGHTBOTTOM«ENDIF-»
«ELSE-»
-ALIGN_CENTER
-«ENDIF»
+ALIGN_CENTER«ENDIF-»
«REM»XXX implement as extension
switch (value) {
case Alignment.BEGINNING : ""

Back to the top