Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2008-04-04 11:43:21 -0400
committerpelder2008-04-04 11:43:21 -0400
commit9d67d93fdb4ff179a560b13caa8b8ca06e27c4a7 (patch)
tree346b91143ef88a4c180f76050115e278e494cfd1 /examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list
parent085f82498792c69132e00c5d677b0569096866fc (diff)
downloadorg.eclipse.jet-9d67d93fdb4ff179a560b13caa8b8ca06e27c4a7.tar.gz
org.eclipse.jet-9d67d93fdb4ff179a560b13caa8b8ca06e27c4a7.tar.xz
org.eclipse.jet-9d67d93fdb4ff179a560b13caa8b8ca06e27c4a7.zip
[225768] Add releng examples created at EclipseCon to JET Examples
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list')
-rw-r--r--examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/initControl.jet10
-rw-r--r--examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/swtStyles.jet11
2 files changed, 21 insertions, 0 deletions
diff --git a/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/initControl.jet b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/initControl.jet
new file mode 100644
index 0000000..8fa81a9
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/initControl.jet
@@ -0,0 +1,10 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<%-- list --%>
+<c:if test="$control/@enabled">
+ <c:get select="$control/@name"/>.setEnabled(<c:get select="$control/@enabled"/>);
+</c:if>
+<c:iterate select="$control/item" var="item">
+ <c:get select="$control/@name"/>.add("<c:get select="$item"/>");
+</c:iterate> \ No newline at end of file
diff --git a/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/swtStyles.jet b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/swtStyles.jet
new file mode 100644
index 0000000..2e82e15
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/list/swtStyles.jet
@@ -0,0 +1,11 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<%-- list --%>
+ SWT.NONE
+<c:if test="not($control/@border) or $control/@border = 'true'">
+ |SWT.BORDER
+</c:if>
+<c:if test="$control/@style">
+ |SWT.<c:get select="$control/@style"/>
+</c:if>

Back to the top