Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/link/initControl.jet')
-rw-r--r--examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/link/initControl.jet10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/link/initControl.jet b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/link/initControl.jet
new file mode 100644
index 0000000..224b6f4
--- /dev/null
+++ b/examples/org.eclipse.jet.ec2008.swtgen.codebehind/templates/control/link/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. */
+%>
+<%-- link --%>
+<c:if test="$control/@enabled">
+ <c:get select="$control/@name"/>.setEnabled(<c:get select="$control/@enabled"/>);
+</c:if>
+<c:if test="$control/@text">
+ <c:get select="$control/@name"/>.setText("<c:get select="$control/@text"/>");
+</c:if>

Back to the top