Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/custom/StyleRange.d @ 9:950d84783eac
Removing direct tango deps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 09 Mar 2009 14:26:40 +0100 |
parents | 4c0057e71936 |
children | d46287db17ed |
comparison
equal
deleted
inserted
replaced
8:2847134a5fc0 | 9:950d84783eac |
---|---|
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module org.eclipse.swt.custom.StyleRange; | 13 module org.eclipse.swt.custom.StyleRange; |
14 | 14 |
15 import java.lang.all; | 15 import java.lang.all; |
16 | |
17 | 16 |
18 import org.eclipse.swt.SWT; | 17 import org.eclipse.swt.SWT; |
19 import org.eclipse.swt.graphics.Color; | 18 import org.eclipse.swt.graphics.Color; |
20 import org.eclipse.swt.graphics.TextStyle; | 19 import org.eclipse.swt.graphics.TextStyle; |
21 import org.eclipse.swt.internal.CloneableCompatibility; | 20 import org.eclipse.swt.internal.CloneableCompatibility; |
215 break; | 214 break; |
216 default: | 215 default: |
217 buffer.append("normal"); | 216 buffer.append("normal"); |
218 } | 217 } |
219 String str = super.toString(); | 218 String str = super.toString(); |
220 int index = tango.text.Util.locate( str, '{'); | 219 int index = str.indexOf( '{'); |
221 if( index is str.length ) index = -1; | 220 str = str.substring( index + 1 ); |
222 str = str[ index + 1 .. $ ]; | |
223 if (str.length > 1) buffer.append(", "); | 221 if (str.length > 1) buffer.append(", "); |
224 buffer.append(str); | 222 buffer.append(str); |
225 return buffer.toString(); | 223 return buffer.toString(); |
226 } | 224 } |
227 } | 225 } |