});
}
private void showImportFileDialog(FileSystemItem input, String varname)
{
ImportFileSettingsDialog dialog = new ImportFileSettingsDialog(
server_,
input,
varname,
"Import Dataset",
new OperationWithInput<ImportFileSettingsDialogResult>()
{
public void execute(
ImportFileSettingsDialogResult result)
{
ImportFileSettings input = result.getSettings();
String var = StringUtil.toRSymbolName(input.getVarname());
String code =
var +
" <- " +
makeCommand(input,
result.getDefaultStringsAsFactors()) +
"\n View(" + var + ")";
eventBus_.fireEvent(new SendToConsoleEvent(code, true));
}
},
globalDisplay_);
dialog.showModal();
}