if (Button.CANSEL.equals(event.getActionCommand())) {
dialog.dispose();
return;
}
CommandData data = new CommandData();
Credentials credentials = dialog.getCredentials();
data.addItem(Keys.CREDENTIALS, credentials);
Collection<File> sources = getSourceFiles();
data.addItem(Keys.SOURCE_FILES, sources);
MessageData messageData = dialog.getMessageData();
data.addItem(Keys.MESSAGE_DATA, messageData);