crashanalysis/crashanalyser/com.nokia.s60tools.crashanalyser/src/com/nokia/s60tools/crashanalyser/model/HtmlFormatter.java
equal
deleted
inserted
replaced
139 description = HEADER + "Crash Summary" + HEADER_END; |
139 description = HEADER + "Crash Summary" + HEADER_END; |
140 |
140 |
141 // format exit information |
141 // format exit information |
142 if (thread != null) { |
142 if (thread != null) { |
143 if (!"".equals(thread.getFullName())) { |
143 if (!"".equals(thread.getFullName())) { |
144 description += BOLD + "Crashed Thread: " + BOLD_END + thread.getFullName() + BREAK; |
144 if (thread.getExitType().equalsIgnoreCase("Panic") || |
|
145 thread.getExitType().equalsIgnoreCase("Exception")) { |
|
146 description += BOLD + "Crashed Thread: " + BOLD_END + thread.getFullName() + BREAK; |
|
147 } else { |
|
148 description += BOLD + "Thread: " + BOLD_END + thread.getFullName() + BREAK; |
|
149 } |
145 } |
150 } |
146 if (!"".equals(thread.getExitType())) { |
151 if (!"".equals(thread.getExitType())) { |
147 description += BOLD + "Exit Type: " + BOLD_END + thread.getExitType() + BREAK; |
152 description += BOLD + "Exit Type: " + BOLD_END + thread.getExitType() + BREAK; |
148 } |
153 } |
149 |
154 |
287 public static String formatUnknownPanicMessage(String panic) { |
292 public static String formatUnknownPanicMessage(String panic) { |
288 return "Could not find a description for this error. Please <a href=\"mailto:S60RnDtools@nokia.com?subject=Crash Analyser - Missing description for " + |
293 return "Could not find a description for this error. Please <a href=\"mailto:S60RnDtools@nokia.com?subject=Crash Analyser - Missing description for " + |
289 panic + |
294 panic + |
290 "\">report this missing error description</a>"; |
295 "\">report this missing error description</a>"; |
291 } |
296 } |
|
297 |
|
298 /** |
|
299 * Creates a HTML message about registration message. |
|
300 * @return HTML string about registration message. |
|
301 */ |
|
302 public static String formatRegistrationMessage() { |
|
303 return "<H4>This is not a crash file!</H4><b>This is a registration message.</b>"; |
|
304 } |
|
305 |
|
306 /** |
|
307 * Creates a HTML message about report. |
|
308 * @return HTML string about report. |
|
309 */ |
|
310 public static String formatReport() { |
|
311 return "<H4>This is not a crash file!</H4><b>This is a report.</b>"; |
|
312 } |
|
313 |
292 } |
314 } |