changeset 135:425c1adb5de5

Example with temporary fix with Display.getCurrent()
author Frank Benoit <benoit@tionex.de>
date Sun, 03 Aug 2008 02:19:19 +0200
parents 2ddf4a05e444
children 7931ee9b41e6
files .hgignore draw2d/UmlExample.d
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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$
--- 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 <benoit@tionex.de>
+ +/
+
 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");