This repository has been archived by the owner on Jan 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
68 lines (52 loc) · 2.62 KB
/
index.html
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<html>
<head>
<title>XScalaWT - Scala DSL for Eclipse RCP and SWT applications</title>
</head>
<body>
<h1>XScalaWT - Scala DSL for Eclipse RCP and SWT applications</h1>
<ul>
<li>Simple syntax for creating SWT user interfaces</li>
<li>Cascading style sheets implemented in about 100 lines of code</li>
<li>Full support for Eclipse Data Binding</li>
</ul>
<p>How simple? How about this? Given "this" is an instanceof Composite:</p>
<pre>
implicit def unboxText2Double(t : Text) = java.lang.Double.parseDouble(t.getText())
implicit def convertDouble2String(d : Double) = d.toString
var fahrenheit : Text = null
var celcius : Text = null
this.contains (
layout = new GridLayout(2, true),
label("Fahrenheit"),
label("Celcius"),
text(fahrenheit = _),
text(celcius = _),
button("Fareinheight => Celcius", {e : SelectionEvent => celcius.setText((5.0/9.0) * (fahrenheit - 32)) }),
button("Celcius => Fareinheight", {e : SelectionEvent => fahrenheit.setText((9.0/5.0) * celcius + 32) })
)</pre>
<h2>Documentation</h2>
<p>This is listed in chronological order and the older documents are
a bit out of date right now, but if you read them through, you'll
get a good sense for how everything works. Of course, you can
also just pull the source code. :-)</p>
<ul>
<li><a href="http://www.coconut-palm-software.com/pix/scala_declarative_dsls2.svg">XScalaWT Presentation</a></li>
<li><a href="http://www.coconut-palm-software.com/the_new_visual_editor/doku.php?id=blog:simplifying_swt_with_scala">Tutorial
and motivation</a></li>
<li><a href="http://www.coconut-palm-software.com/the_new_visual_editor/doku.php?id=blog:more_xscalawt">Simple code example for those who are impatient</a></li>
<li><a href="http://www.coconut-palm-software.com/the_new_visual_editor/doku.php?id=blog:xscalawt_stylesheets">Stylesheets tutorial</a></li>
<li><a href="http://www.coconut-palm-software.com/the_new_visual_editor/doku.php?id=blog:declarative_data_binding_using_xscalawt">Data binding</a></li>
</ul>
<h2>Download and Build</h2>
<p>XScalaWT source is maintained on the
<a href="https://github.com/pieceoftheloaf/XScalaWT/tree/gh-pages">
"gh_pages"</a>
branch at GitHub.
Currently I don't have a web host for binary builds / P2
repositories, but I'm working on that.</p>
<p>You can build the latest XScalaWT by pulling the "gh_pages"
branch, then running "mvn clean install" using Maven 3 from the
"build" directory. Then you'll have your own P2 repository you
can add to your Maven/Tycho build in the "updatesite" project.</p>
</body>
</html>