Skip to main content
summaryrefslogtreecommitdiffstats
blob: a1f6b8a6d942feeabb52944bfce5c77d202b66a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<%!
/*  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