comparison 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
comparison
equal deleted inserted replaced
8:2847134a5fc0 9:950d84783eac
10 * Port to the D programming language: 10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module org.eclipse.swt.events.TypedEvent; 13 module org.eclipse.swt.events.TypedEvent;
14 14
15
16 import org.eclipse.swt.widgets.Event; 15 import org.eclipse.swt.widgets.Event;
17 import org.eclipse.swt.widgets.Display; 16 import org.eclipse.swt.widgets.Display;
18 import org.eclipse.swt.widgets.Widget; 17 import org.eclipse.swt.widgets.Widget;
19 import org.eclipse.swt.internal.SWTEventObject; 18 import org.eclipse.swt.internal.SWTEventObject;
20 19
21 import tango.text.Util : split;
22 import java.lang.all; 20 import java.lang.all;
23 21
24 /** 22 /**
25 * This is the super class for all typed event classes provided 23 * This is the super class for all typed event classes provided
26 * by SWT. Typed events contain particular information which is 24 * by SWT. Typed events contain particular information which is
88 * 86 *
89 * @return the name of the event 87 * @return the name of the event
90 */ 88 */
91 String getName () { 89 String getName () {
92 String str = this.classinfo.name; 90 String str = this.classinfo.name;
93 return split( str, "." )[$-1]; 91 int index = str.lastIndexOf ('.');
92 if (index is -1) return str;
93 return str.substring (index + 1, str.length );
94 } 94 }
95 95
96 /** 96 /**
97 * Returns a string containing a concise, human-readable 97 * Returns a string containing a concise, human-readable
98 * description of the receiver. 98 * description of the receiver.