# HG changeset patch # User Frank Benoit # Date 1217722759 -7200 # Node ID 425c1adb5de59623beda9e0775d7a97b52130854 # Parent 2ddf4a05e444d4fef991092596344f5c59d8be41 Example with temporary fix with Display.getCurrent() diff -r 2ddf4a05e444 -r 425c1adb5de5 .hgignore --- a/.hgignore Sun Aug 03 00:50:51 2008 +0200 +++ b/.hgignore Sun Aug 03 02:19:19 2008 +0200 @@ -30,6 +30,10 @@ ^user/dsss.last ^user/dsss_imports +^draw2d/dsss_objs +^draw2d/dsss.last +^draw2d/dsss_imports + ^examples/simple$ ^examples/helloworld/HelloWorld[0-9]$ ^examples/addressbook/AddressBook$ diff -r 2ddf4a05e444 -r 425c1adb5de5 draw2d/UmlExample.d --- a/draw2d/UmlExample.d Sun Aug 03 00:50:51 2008 +0200 +++ b/draw2d/UmlExample.d Sun Aug 03 02:19:19 2008 +0200 @@ -1,3 +1,9 @@ +/++ + + Original sources from http://www.eclipse.org/articles/Article-GEF-Draw2d/GEF-Draw2d.html + + Ported to the D programming language + + Frank Benoit + +/ + module umlexample.UmlExample; import dwt.dwthelper.utils; @@ -97,7 +103,7 @@ * A test class to display a UMLFigure */ public static void main(){ - Display d = new Display(); + Display d = Display.getCurrent(); final Shell shell = new Shell(d); shell.setSize(400, 400); shell.setText("UMLClassFigure Test");