diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/events/TypedEvent.d @ 9:950d84783eac

Removing direct tango deps.
author Frank Benoit <benoit@tionex.de>
date Mon, 09 Mar 2009 14:26:40 +0100
parents 6bf2837c50fe
children 536e43f63c81
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/events/TypedEvent.d	Thu Mar 05 15:12:35 2009 +0100
+++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/events/TypedEvent.d	Mon Mar 09 14:26:40 2009 +0100
@@ -12,13 +12,11 @@
  *******************************************************************************/
 module org.eclipse.swt.events.TypedEvent;
 
-
 import org.eclipse.swt.widgets.Event;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.swt.widgets.Widget;
 import org.eclipse.swt.internal.SWTEventObject;
 
-import tango.text.Util : split;
 import java.lang.all;
 
 /**
@@ -90,7 +88,9 @@
  */
 String getName () {
     String str = this.classinfo.name;
-    return split( str, "." )[$-1];
+    int index = str.lastIndexOf ('.');
+    if (index is -1) return str;
+    return str.substring (index + 1, str.length );
 }
 
 /**