MCPcopy Create free account
hub / github.com/PCGen/pcgen / doInBackground

Method doInBackground

code/src/java/pcgen/gui2/util/StatusWorker.java:99–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 11

errorPrintMethod · 0.95
getContextMessageMethod · 0.80
startShowingProgressMethod · 0.80
addPCGenTaskListenerMethod · 0.80
setContextMessageMethod · 0.80
getProgressMethod · 0.65
getMaximumMethod · 0.65
getModelMethod · 0.45
getProgressBarMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected