Mercurial > projects > dwt2
comparison org.eclipse.tools/Sleak/org/eclipse/swt/tools/internal/Sleak.d @ 60:66be6a990713
new eclipsetools target, fix of new exception stacktrace info.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 30 Mar 2009 14:46:59 +0200 |
parents | 6f068362a363 |
children |
comparison
equal
deleted
inserted
replaced
59:7e0547d89731 | 60:66be6a990713 |
---|---|
231 void refreshObject () { | 231 void refreshObject () { |
232 int index = list.getSelectionIndex (); | 232 int index = list.getSelectionIndex (); |
233 if (index is -1) return; | 233 if (index is -1) return; |
234 if (check.getSelection ()) { | 234 if (check.getSelection ()) { |
235 char[] txt = "Stacktrace info (if missing you need stacktrace support for your program):\n"; | 235 char[] txt = "Stacktrace info (if missing you need stacktrace support for your program):\n"; |
236 foreach( line; errors[index].info ){ | 236 foreach( frame; errors[index].info ){ |
237 txt ~= line ~ \n; | 237 txt ~= Format("{}:{}\n", frame.file, frame.line ); |
238 } | 238 } |
239 text.setText (txt); | 239 text.setText (txt); |
240 text.setVisible (true); | 240 text.setVisible (true); |
241 canvas.setVisible (false); | 241 canvas.setVisible (false); |
242 } else { | 242 } else { |