if( sourceFile!=null ) {
dialog.getExternalFile().setValue(sourceFile.toString());
}
if (dialog.process()) {
binaryFile = new File(dialog.getBinaryFile().getValue());
File externFile = new File(dialog.getExternalFile().getValue());
int fileType = dialog.getFileType().getSelectedIndex();
int inputCount = dialog.getInputCount().getValue();
int idealCount = dialog.getIdealCount().getValue();