comparison dwtx/core/internal/runtime/PrintStackUtil.d @ 197:0ea0c9f9008f

Remove tango deprecation warnings.
author Frank Benoit <benoit@tionex.de>
date Wed, 18 Feb 2009 19:35:22 +0100
parents 4878bef4a38e
children
comparison
equal deleted inserted replaced
196:66bceed20048 197:0ea0c9f9008f
11 * Frank Benoit <benoit@tionex.de> 11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/ 12 *******************************************************************************/
13 module dwtx.core.internal.runtime.PrintStackUtil; 13 module dwtx.core.internal.runtime.PrintStackUtil;
14 14
15 import dwtx.core.runtime.IStatus; 15 import dwtx.core.runtime.IStatus;
16 import tango.io.Print; 16 import tango.io.stream.Format;
17 import dwt.dwthelper.utils; 17 import dwt.dwthelper.utils;
18 18
19 public class PrintStackUtil { 19 public class PrintStackUtil {
20 20
21 static public void printChildren(IStatus status, Print!(char) output) { 21 static public void printChildren(IStatus status, FormatOutput!(char) output) {
22 IStatus[] children = status.getChildren(); 22 IStatus[] children = status.getChildren();
23 if (children is null || children.length is 0) 23 if (children is null || children.length is 0)
24 return; 24 return;
25 for (int i = 0; i < children.length; i++) { 25 for (int i = 0; i < children.length; i++) {
26 output.formatln("Contains: {}", children[i].getMessage()); //$NON-NLS-1$ 26 output.formatln("Contains: {}", children[i].getMessage()); //$NON-NLS-1$
29 ExceptionPrintStackTrace(exception); 29 ExceptionPrintStackTrace(exception);
30 printChildren(children[i], output); 30 printChildren(children[i], output);
31 } 31 }
32 } 32 }
33 33
34 // static public void printChildren(IStatus status, Print!(char) output) { 34 // static public void printChildren(IStatus status, FormatOutput!(char) output) {
35 // IStatus[] children = status.getChildren(); 35 // IStatus[] children = status.getChildren();
36 // if (children is null || children.length is 0) 36 // if (children is null || children.length is 0)
37 // return; 37 // return;
38 // for (int i = 0; i < children.length; i++) { 38 // for (int i = 0; i < children.length; i++) {
39 // output.formatln( "Contains: {}", children[i].getMessage()); //$NON-NLS-1$ 39 // output.formatln( "Contains: {}", children[i].getMessage()); //$NON-NLS-1$