First working JFace example
Bill Baxter
dnewsgroup at billbaxter.com
Thu Apr 10 04:26:56 PDT 2008
Frank Benoit wrote:
> Now the JFace stuff 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:
> http://wiki.eclipse.org/index.php/JFaceSnippets
>
>
> Due to a compiler bug (#1978), the tango collection need a fix to make
> JFace not going into a endless loop.
>
> - tango.util.collection.mode.View
> line 39 : public Dispenser!(T) duplicate();
> change to: public View!(T) duplicate();
>
>
> - tango.util.collection.mode.Set
> line 37 add:
> public Set!(T) duplicate();
> public alias duplicat dup;
I made those changes to svn tango,
hg pulled & updated dwt-win and dwt-addons
did dsss build and dsss install for all three,
but I'm getting errors with dsss build on dwt-addons.
For instance
dwt-addons/dwtx/jface/viewers/AbstractListViewer.d(474)
is using Java style anonymous declaration.
And then the tango changes seem to be leading to lots of compiler erorrs
in dwtx.core:
dwtx\core\commands\operations\TriggeredOperations.d(200): Error: cannot
implicitly convert expression (this.children.duplicate()) of type
tango.util.collection.model.View.View!(IUndoableOperation).View to
tango.util.collection.model.Seq.Seq!(IUndoableOperation).Seq
dwtx\core\commands\operations\TriggeredOperations.d(237): Error: cannot
implicitly convert expression (childrenToRestore) of type
tango.util.collection.model.View.View!(IUndoableOperation).View to
tango.util.collection.model.Seq.Seq!(IUndoableOperation).Seq
dwtx\core\commands\operations\TriggeredOperations.d(243): Error: cannot
implicitly convert expression (childrenToRestore) of type
tango.util.collection.model.View.View!(IUndoableOperation).View to
tango.util.collection.model.Seq.Seq!(IUndoableOperation).Seq
dwtx\core\commands\operations\TriggeredOperations.d(247): Error: cannot
implicitly convert expression (childrenToRestore) of type
tango.util.collection.model.View.View!(IUndoableOperation).View to
tango.util.collection.model.Seq.Seq!(IUndoableOperation).Seq
--bb
More information about the Digitalmars-d-dwt
mailing list