JFace
Currently the JFace port is an very early state. It compiles with the available dwt on win/linux.
dwt-samples/jface/ActionAndStatusbar is a first showcase.
More example code as showcases and testcases is very welcome. Snippets can be found here: JFace Snippets
Due to a compiler bug in dmd 1.028 (#1978), the tango collection need a fix to make JFace not going into a endless loop. (dmd 1.029 cannot be used because of bug 2067)
- Use the tango release 0.99.6
- tango.util.collection.model.View
line 39 : public Dispenser!(T) duplicate();
change to: public View!(T) duplicate();
- tango.util.collection.model.Set
line 37 add:
public Set!(T) duplicate();
public alias duplicate dup;
- tango.util.collection.model.Seq
line 35 add:
public Seq!(T) duplicate ();
public alias duplicate dup;
You need not to run dsss build on dwt-win/linux nor on dwt-addons. Just run it in dwt-samples and pass the include path with the -I option and the resource path to dwt-addons/res and dwt-samples/res with the -J option. Pass the -version=DwtAddons to enable the dwt-addons examples.
For windows the additional lib path for the DWT import libs might be also needed.
F:\dwt-samples>dsss build jface\ActionAndStatusbar.d -full -I..\dwt-win -S..\dwt-win\lib -Sg:\tango.svn\lib -Jres -J..\dwt-addons\res -I..\dwt-addons -version=DwtAddons
There might be some FIXME messages, printed via pragma( msg, ...). They are only for me in development, so you can ignore them.
Fixing Bugs
If you want to help finding and fixing bugs, its usefull to compare the source code against the prepared jface sources. This package contains the Java source, renamed to .d files, with some automatic refactorings and replacements applied.
