Monthly Archives: June 2006

Hosting Update Manager on Sourceforge’s Mirrors

Now Java2Script can be installed from Eclipse Update Manager with URL:

http://j2s.sourceforge.net/update/

It will redirect the download traffics to Sourceforge’s mirrors, so it will be safe and fast.

More technical details about hosting Eclipse plugin update manager on Sourceforge’s mirrors:

First, create your feature project and update site project. site.xml support mirrorURL attribute, you can create the mirrors.xml for your project’s mirror list of Sourceforge.net.

Second, you should map those “plugins/*.jar” to “*.jar” without the prefix “plugins/”.

Third, you should use “.htaccess” to redirect the default *.jar downloads (Someone will always select the default server, which is is not sourceforge mirror, to install) to a default mirror server. The “.htaccess” may looks like:

RewriteEngine On
RewriteBase /update/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^net\.sf\.j2s\.(.*)\.jar$ http://superb-east.dl.sourceforge.net/sourceforge/j2s/net.sf.j2s.$1.jar [R]

Last, use “File Release Sytem” to release your *.jar and site.xml, and update your .htacces, site.xml with features/*.jar (always small in size) into web site. And then test the installation.
Reference:

Plugging into SourceForge.net

http://www.eclipse.org/articles/Article-Plugging-into-SourceForge/sourceforge.html

Posted in How To, Java2Script News, Sharing | 2 Comments

Java2Script 1.0.0 M2 Released

New and Noteworthy
==================
Java2Script Core
—————-
1. Add Javadoc @j2s* support, which support for native JavaScript
2. Identifiers minimization
3. Fixed bug on compiling private field and methods, nested anonymous class and inner

non-static class, and remove unnecessary final variables
4. Optimize the size of generated *.js
5. Support regular expression method of String
6. Support java.util.ResourceBundle
7. Support editting the converted *.js
8. Support converting *.properties into *.js

Java2Script SWT
—————
1. Support blocking of Shell
2. Refining of widget Label, Link, Button, Text, Group, TabFolder, Composite,

Decoration, Shell, See Control Example for details
3. Support Image on Widgets
4. Support most of listeners for SWT widgets
5. Support dispose method of Widget
6. Support exporting the UI to static HTML
7. Optimize layout speeds by deferring layout
(CTabFolder, Combo, Table, Tree, and others are still under improving)

Java2Script AJAX
—————-
1. AJAX for both Java and JavaScript are integrated into Eclipse platform

Java2Script Developer Team
————————–
Welcome new developer – Soheil Hassas Yeganeh, who joined the developer team in late April, 2006.

Download Java2Script 1.0.0 M2 for Eclipse 3.1.*

For more details, please visit http://j2s.sourceforge.net/

Posted in Java2Script News | Leave a comment

Screenshot of SWT Control Example

The Control Example is one of Eclipse SWT examples. I modified the tabs into dynamical loading tab so the example will work faster. You still need to wait about 8 seconds for the example to initialize besides the about 800+k of *.js downloads. Be ENOUGH patient, if you want to get a real tour of JavaScript version of SWT.

Of course the performance and the size of *.js will be optimized to an acceptable level in the future.

PS: J2S SWT Control Example on j2s.sourceforge.net

And finally, after sometime of compressing and ripping out unused codes, after packed by dean edward’s packer, it’s about 250k of the size, and take about 5s to initialize. Considered acceptable when comparing to native Java SWT application.
Now, you can download the Control Example(*.zip 139k), and view the example locally.

J2S SWT Control Example

Posted in Screenshot, Sharing, SWT | Leave a comment