enykee、录音以及下雨 >>
<< 开源项目Java2Script(J2S) Pacemaker针对Eclipse3.1.1发布体验版
An early JavaScript version of SWT (posted on eclipsezone.com)

Author Zhou Renjian Create@ 2005-12-24 20:35
whizz Note icon

An early JavaScript version of SWT

Reusing codes and tools should be an important feature for Java world, and also for JavaScript world.

Now Java2Script Pacemaker hosted on http://sourceforge/projects/j2s/ releases an experiencing version of J2S plugin for Eclipse 3.1.1. It's going to provide a way to reuse existed Java codes and tools by translating Java codes into JavaScript codes. And it's on the way to provide a JavaScript version of Eclipse' SWT.

Background:
A lot of useful UI widget libraries is spreading over the internet, such as:
1. Bindows http://www.bindows.net
2. Rialto http://rialto.application-servers.com/demoRialto.jsp
3. qooxdoo http://qooxdoo.oss.schlund.de/demo/release/public/test/user/Index.html
4. ZK http://www.potix.com/zkdemo/userguide

And now it came J2S' SWT:
http://j2s.sourceforge.net/demo/
or
http://j2s.sourceforge.net/demo/xylayout.html

There are a tutorial telling how-to:
http://j2s.sourceforge.net/tutorial.html


Comparison of J2S' SWT to those existed UI widget libraries:
J2S SWT is considered as a sub project of J2S. And J2S' goal is to reuse all Java codes by translating them into JavaScript. So, the J2S' SWT is also aiming to reuse Java codes, especial the codes of org.eclipse.swt.*, and it also is aiming to reuse those Java SWT tools, such as Visual Editor or SWT Designer or other tools. So it has two main advances when comparing with other existed UI widget libraries:
1. Can be debugged in the familiar Eclipse debug environment
2. A lot of existed tools can be used to designed the widgets.

That would be great advances for J2S' SWT

SWT API can't be implemented 100% in JavaScript. But if there are about 90% of SWT API implemented in JavaScript, it would be very cool that generated JavaScript codes from SWT Java codes (e.g. SWTDesigner/VE designed codes) is running in browser, even though it would be somewhat slow when runnning. And the slowness can be optimized when things are proved to be feasible.

Anybody have interest in this project? Or any suggestion?

Appendix:

Latest news from http://j2s.sourceforge.net
===========================================
Dec 23, 2005: First release(marked as 0.1.0) of Java2Script(J2S) for Eclipse 3.1.1 has been released. It is an experiencing version for advanced developers.

Major features:
1. JavaScript codes can be generated from Java codes
2. Java Object-Oriented inheritance simulated by JavaScript's prototyped inheritance
3. Common classes of java.util.* supported
4. Lots of API classes in org.eclipse.swt.* supported
5. Mozilla/Firefox, IE, Opera compatiable

For demo, please visit (should wait for some seconds):
http://j2s.sourceforge.net/demo/

For tutorial of J2S' SWT, please visit:
http://j2s.sourceforge.net/tutorial.html

More information, please visit the newly setup website:
http://j2s.sourceforge.net/
本记录所在类别:
本记录相关记录: