this.mcodeUtil = mcodeUtil;
}
public TaskIterator createTaskIterator()
{
TaskIterator taskIterator = new TaskIterator(new Task[0]);
Collection resultPanels = this.mcodeUtil.getResultPanels();
MCODECloseAllResultsTask closeResultsTask = new MCODECloseAllResultsTask(this.swingApplication, this.mcodeUtil);
if (resultPanels.size() > 0) {
taskIterator.append(closeResultsTask);
}
taskIterator.append(new MCODECloseTask(closeResultsTask, this.registrar, this.mcodeUtil));
return taskIterator;
}