Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/setGridLayout.jet')
-rw-r--r--examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/setGridLayout.jet27
1 files changed, 0 insertions, 27 deletions
diff --git a/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/setGridLayout.jet b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/setGridLayout.jet
deleted file mode 100644
index a1f6b8a..0000000
--- a/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/setGridLayout.jet
+++ /dev/null
@@ -1,27 +0,0 @@
-<%!
-/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
-%>
-<c:if test="$control/gridLayout">
- <java:import>org.eclipse.jface.layout.GridLayoutFactory</java:import>.swtDefaults()
-<c:iterate select="$control/gridLayout/*" var="layout">
-<c:choose>
-<c:when test="$layout/self::equalWidth">
- .equalWidth(true)
-</c:when>
-<c:when test="$layout/self::extendedMargins">
- .extendedMargins(<c:get select="$layout/@left"/>, <c:get select="$layout/@right"/>,
- <c:get select="$layout/@top"/>, <c:get select="$layout/@bottom"/>)
-</c:when>
-<c:when test="$layout/self::margins">
- .margins(<c:get select="$layout/@width"/>, <c:get select="$layout/@height"/>)
-</c:when>
-<c:when test="$layout/self::numColumns">
- .numColumns(<c:get select="$layout/@numColumns"/>)
-</c:when>
-<c:when test="$layout/self::spacing">
- .spacing(<c:get select="$layout/@hSpacing"/>, <c:get select="$layout/@vSpacing"/>)
-</c:when>
-</c:choose>
-</c:iterate>
- .applyTo(<c:get select="$control/@name"/>);
-</c:if>

Back to the top