Skip to main content
summaryrefslogtreecommitdiffstats
blob: c7ee4c031fdbe9790f354dfc9ccb48496c282917 (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
28
29
30
<%!
/*  Copyright 2008 IBM Corp.  All rights reserved.  This source code is made available under the terms of the Eclipse Public License, v1.0. */
%>
		<java:import>org.eclipse.jface.layout.GridDataFactory</java:import>.defaultsFor(<c:get select="$control/@name"/>)
<c:iterate select="$control/gridData/*" var="data">
<c:choose>
<c:when test="$data/self::align">
			.align(SWT.<c:get select="$data/@hAlign"/>, SWT.<c:get select="$data/@vAlign"/>)
</c:when>
<c:when test="$data/self::exclude">
			.exclude(true)
</c:when>
<c:when test="$data/self::grab">
			.grab(<c:get select="$data/@horizontal"/>, <c:get select="$data/@vertical"/>)
</c:when>
<c:when test="$data/self::hint">
			.hint(<c:get select="$data/@xHint"/>, <c:get select="$data/@yHint"/>)
</c:when>
<c:when test="$data/self::indent">
			.indent(<c:get select="$data/@hIndent"/>, <c:get select="$data/@vIndent"/>)
</c:when>
<c:when test="$data/self::minSize">
			.minSize(<c:get select="$data/@minX"/>, <c:get select="$data/@minY"/>)
</c:when>
<c:when test="$data/self::span">
			.span(<c:get select="$data/@hSpan"/>, <c:get select="$data/@vSpan"/>)
</c:when>
</c:choose>
</c:iterate>
			.applyTo(<c:get select="$control/@name"/>);

Back to the top