* @param record Log record to publish
*/
public void publish(final LogRecord record) {
if(record instanceof ProgressLogRecord) {
ProgressLogRecord preg = (ProgressLogRecord) record;
Progress prog = preg.getProgress();
JProgressBar pbar = getOrCreateProgressBar(prog);
updateProgressBar(prog, pbar);
if(prog.isComplete()) {
removeProgressBar(prog, pbar);
}
if(prog.isComplete() || prog instanceof StepProgress) {
publishTextRecord(record);
}
}
else {
publishTextRecord(record);