Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/text/swtStyles.jet')
-rw-r--r--examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/text/swtStyles.jet32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/text/swtStyles.jet b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/text/swtStyles.jet
new file mode 100644
index 0000000..8ac2906
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/text/swtStyles.jet
@@ -0,0 +1,32 @@
+<%!
+/* Copyright 2008 IBM Corp. All rights reserved. This source code is made available under the terms of the Eclipse Public License, v1.0. */
+%>
+<%-- text --%>
+ SWT.NONE
+<c:if test="$control/@style">
+ |SWT.<c:get select="$control/@style"/>
+</c:if>
+<c:if test="not($control/@border) or $control/@border = 'true'">
+ |SWT.BORDER
+</c:if>
+<c:if test="$control/@readOnly = 'true'">
+ |SWT.READ_ONLY
+</c:if>
+<c:if test="$control/@wrap = 'true'">
+ |SWT.WRAP
+</c:if>
+<c:if test="$control/@search = 'true'">
+ |SWT.SEARCH
+</c:if>
+<c:if test="$control/@cancel = 'true'">
+ |SWT.CANCEL
+</c:if>
+<c:if test="$control/@password = 'true'">
+ |SWT.PASSWORD
+</c:if>
+<c:if test="$control/@alignment">
+ |SWT.<c:get select="$control/@alignment"/>
+</c:if>
+<c:if test="$control/@scroll">
+ |SWT.<c:get select="$control/@scroll"/>
+</c:if>

Back to the top