()
| 97 | } |
| 98 | |
| 99 | @Override |
| 100 | protected List<LogRecord> doInBackground() |
| 101 | { |
| 102 | final String oldMessage = statusBar.getContextMessage(); |
| 103 | statusBar.startShowingProgress(statusMsg, false); |
| 104 | statusBar.getProgressBar().getModel().setRangeProperties(task.getProgress(), 1, 0, task.getMaximum(), true); |
| 105 | |
| 106 | task.addPCGenTaskListener(this); |
| 107 | |
| 108 | try |
| 109 | { |
| 110 | task.run(); |
| 111 | } |
| 112 | catch (Exception e) |
| 113 | { |
| 114 | Logging.errorPrint(e.getLocalizedMessage(), e); |
| 115 | } |
| 116 | |
| 117 | task.removePCGenTaskListener(this); |
| 118 | |
| 119 | SwingUtilities.invokeLater(() -> statusBar.setContextMessage(oldMessage)); |
| 120 | return Collections.unmodifiableList(errors); |
| 121 | } |
| 122 | } |
nothing calls this directly
no test coverage detected