Mercurial > projects > dwt-win
comparison dwt/internal/DWTEventObject.d @ 197:184ab53b7785
Changes and fixes for jface
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 10 Apr 2008 11:19:49 +0200 |
parents | 57151e2793a2 |
children | ab60f3309436 |
comparison
equal
deleted
inserted
replaced
196:1e7701c27c03 | 197:184ab53b7785 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2000, 2004 IBM Corporation and others. | 2 * Copyright (c) 2000, 2004 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
13 module dwt.internal.DWTEventObject; | 13 module dwt.internal.DWTEventObject; |
14 | 14 |
15 | 15 |
16 //import java.util.EventObject; | 16 //import java.util.EventObject; |
17 import tango.core.Exception; | 17 import tango.core.Exception; |
18 import dwt.dwthelper.utils; | |
18 | 19 |
20 /+ | |
19 ///PORTING_TYPE | 21 ///PORTING_TYPE |
20 class EventObject { | 22 class EventObject : EventObject { |
21 protected Object source; | 23 protected Object source; |
22 | 24 |
23 public this(Object source) { | 25 public this(Object source) { |
24 if (source is null) | 26 if (source is null) |
25 throw new IllegalArgumentException( "null arg" ); | 27 throw new IllegalArgumentException( "null arg" ); |
33 public override char[] toString() { | 35 public override char[] toString() { |
34 return this.classinfo.name ~ "[source=" ~ source.toString() ~ "]"; | 36 return this.classinfo.name ~ "[source=" ~ source.toString() ~ "]"; |
35 } | 37 } |
36 } | 38 } |
37 | 39 |
38 | 40 +/ |
39 | 41 |
40 | 42 |
41 /** | 43 /** |
42 * This class is the cross-platform version of the | 44 * This class is the cross-platform version of the |
43 * java.util.EventObject class. | 45 * java.util.EventObject class. |