final ProfileForm profileForm = droidContext.getSelectedProfile();
profileForm.stop();
}
private void export() {
ExportDialog exportOptions = new ExportDialog(this);
if (globalContext.getGlobalConfig().getBooleanProperty(DroidGlobalProperty.CSV_EXPORT_ROW_PER_FORMAT)) {
exportOptions.setExportOptions(ExportOptions.ONE_ROW_PER_FORMAT);
} else {
exportOptions.setExportOptions(ExportOptions.ONE_ROW_PER_FILE);
}
exportOptions.showDialog();
if (exportOptions.isApproved()) {
int response = exportFileChooser.showSaveDialog(this);
if (response == JFileChooser.APPROVE_OPTION) {
List<String> profileIds = new ArrayList<String>();
profileIds.addAll(exportOptions.getSelectedProfileIds());
//for (ProfileForm profileForm : droidContext.allProfiles()) {
// profileIds.add(profileForm.getProfile().getUuid());
// }
final ExportAction exportAction = globalContext.getActionFactory().newExportAction();
final ExportProgressDialog exportDialog = new ExportProgressDialog(this, exportAction);
exportAction.setDestination(exportFileChooser.getSelectedFile());
exportAction.setProfileIds(profileIds);
exportAction.setExportOptions(exportOptions.getExportOptions());
exportAction.setOutputEncoding(exportOptions.getOutputEncoding());
exportAction.setCallback(new ActionDoneCallback<ExportAction>() {
@Override
public void done(ExportAction action) {
try {