diff options
| author | Dani Megert | 2013-09-04 10:46:25 +0000 |
|---|---|---|
| committer | Dani Megert | 2013-09-04 10:46:25 +0000 |
| commit | 0732c3f2ee04fe49960e699bac35acd674a4f9c0 (patch) | |
| tree | 4527998b5d9075bfeb63d3064264ec1a2a03314f | |
| parent | 5f1fbdaf979a64ad261371917a61debd985a604c (diff) | |
| download | eclipse.pde.ui-0732c3f2ee04fe49960e699bac35acd674a4f9c0.tar.gz eclipse.pde.ui-0732c3f2ee04fe49960e699bac35acd674a4f9c0.tar.xz eclipse.pde.ui-0732c3f2ee04fe49960e699bac35acd674a4f9c0.zip | |
Fixed bug 416507: Error Log view does not display child entries for new exceptions
| -rw-r--r-- | ui/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/LogView.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ui/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/LogView.java b/ui/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/LogView.java index 6e13af3281..56e8e05f60 100644 --- a/ui/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/LogView.java +++ b/ui/org.eclipse.ui.views.log/src/org/eclipse/ui/internal/views/log/LogView.java @@ -1034,6 +1034,25 @@ public class LogView extends ViewPart implements ILogListener { private LogEntry createLogEntry(IStatus status) { LogEntry entry = new LogEntry(status); entry.setSession(currentSession); + + if (status.getException() instanceof CoreException) { + IStatus coreStatus = ((CoreException) status.getException()).getStatus(); + if (coreStatus != null) { + LogEntry childEntry = createLogEntry(coreStatus); + entry.addChild(childEntry); + childEntry.setSession(currentSession); + } + } + + if (status.isMultiStatus()) { + IStatus[] children = status.getChildren(); + for (int i = 0; i < children.length; i++) { + LogEntry childEntry = createLogEntry(children[i]); + entry.addChild(childEntry); + childEntry.setSession(currentSession); + } + } + return entry; } |
