dialog = ADialogBuilder.buildDialog(LoadOptionsForm.class);
}
Project project = ModelSupport.getModelItemProject(holder.getModelItem());
if (project != null) {
FileFormField fileFormField = (FileFormField) dialog.getFormField(LoadOptionsForm.FILE);
String currentDirectory = extractFileChooserPathForProject(project);
fileFormField.setCurrentDirectory(currentDirectory);
}
dialog.getFormField(LoadOptionsForm.DELETEREMAINING)
.setEnabled(holder instanceof MutableTestPropertyHolder);
dialog.getFormField(LoadOptionsForm.CREATEMISSING).setEnabled(holder instanceof MutableTestPropertyHolder);