diff dwt/custom/TextChangingEvent.d @ 41:6337764516f1

Sync dwt/custom with dwt-linux (took copy of complete folder)
author Frank Benoit <benoit@tionex.de>
date Tue, 07 Oct 2008 16:29:55 +0200
parents 1a8b3cb347e0
children
line wrap: on
line diff
--- a/dwt/custom/TextChangingEvent.d	Tue Oct 07 14:41:31 2008 +0200
+++ b/dwt/custom/TextChangingEvent.d	Tue Oct 07 16:29:55 2008 +0200
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2000, 2004 IBM Corporation and others.
+ * Copyright (c) 2000, 2008 IBM Corporation and others.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -7,15 +7,23 @@
  *
  * Contributors:
  *     IBM Corporation - initial API and implementation
+ * Port to the D programming language:
+ *     Frank Benoit <benoit@tionex.de>
  *******************************************************************************/
-module dwt.custom;
+module dwt.custom.TextChangingEvent;
+
+import dwt.dwthelper.utils;
 
 
-import dwt.events.*;
+import dwt.events.TypedEvent;
+import dwt.custom.StyledTextContent;
+import dwt.custom.StyledTextEvent;
 
 /**
  * This event is sent by the StyledTextContent implementor when a change
  * to the text is about to occur.
+ *
+ * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
  */
 public class TextChangingEvent : TypedEvent {
     /**
@@ -23,7 +31,7 @@
      */
     public int start;
     /**
-     * Text that is going to be inserted or empty String
+     * Text that is going to be inserted or empty string
      * if no text will be inserted
      */
     public String newText;
@@ -45,19 +53,19 @@
     public int newLineCount;
 
     static final long serialVersionUID = 3257290210114352439L;
-    
+
 /**
  * Create the TextChangedEvent to be used by the StyledTextContent implementor.
  * <p>
  *
- * @param source the object that will be sending the new TextChangingEvent, 
- *  cannot be null  
+ * @param source the object that will be sending the new TextChangingEvent,
+ *  cannot be null
  */
 public this(StyledTextContent source) {
-    super(source);
+    super( cast(Object)source);
 }
 this(StyledTextContent source, StyledTextEvent e) {
-    super(source);
+    super( cast(Object)source);
     start = e.start;
     replaceCharCount = e.replaceCharCount;
     newCharCount = e.newCharCount;