diff dwt/browser/WindowEvent.d @ 286:44258e0b6687

More fixes for xpcom
author John Reimer<terminal.node@gmail.com>
date Tue, 05 Aug 2008 10:11:58 -0700
parents 93409d9838c5
children 4ee8c4237614
line wrap: on
line diff
--- a/dwt/browser/WindowEvent.d	Thu Jul 31 21:56:03 2008 -0700
+++ b/dwt/browser/WindowEvent.d	Tue Aug 05 10:11:58 2008 -0700
@@ -7,8 +7,6 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
- * Port to the D programming language:
- *     John Reimer <terminal.node@gmail.com>
  *******************************************************************************/
 module dwt.browser.WindowEvent;
 
@@ -125,8 +123,7 @@
  * 
  * @since 3.0
  */
-
-public class WindowEvent : TypedEvent {
+public class WindowEvent extends TypedEvent {
 
     /** 
      * Specifies whether the platform requires the user to provide a
@@ -189,19 +186,27 @@
     
     static final long serialVersionUID = 3617851997387174969L;
     
-    this(Widget w) {
-        super(w);
-    }
+WindowEvent(Widget w) {
+    super(w);
+}
 
-    /**
-     * Returns a string containing a concise, human-readable
-     * description of the receiver.
-     *
-     * @return a string representation of the event
-     */
-
-    public override String toString () {
-        return Format( "WindowEvent {required={} browser={} location={} size={} addressBar={} menuBar={} statusBar={} toolBar={} }",
-        required, browser, location, size, addressBar, menuBar, statusBar, tooBar );
-    }
+/**
+ * Returns a string containing a concise, human-readable
+ * description of the receiver.
+ *
+ * @return a string representation of the event
+ */
+public String toString() {
+    String string = super.toString ();
+    return string.substring (0, string.length() - 1) // remove trailing '}'
+        + " required=" + required
+        + " browser=" + browser
+        + " location=" + location
+        + " size=" + size
+        + " addressBar=" + addressBar
+        + " menuBar=" + menuBar
+        + " statusBar=" + statusBar
+        + " toolBar=" + toolBar
+        + "}";
 }
+}