CommandController controller = entry.controller;
if (progressMonitor.isCancelled())
{
break;
}
UICommand command = controller.getCommand();
try
{
for (CommandExecutionListener listener : listeners)
{
listener.preCommandExecuted(command, executionContext);
}
Result currentResult = command.execute(executionContext);
for (CommandExecutionListener listener : listeners)
{
listener.postCommandExecuted(command, executionContext, currentResult);
}
results.add(currentResult);