use of org.rstudio.studio.client.workbench.views.environment.dataimport.DataImportDialog in project rstudio by rstudio.
the class DataImportPresenter method getImportDatasetCommandFromMode.
public Command getImportDatasetCommandFromMode(final DataImportModes dataImportMode, final String dialogTitle, final String path) {
return new Command() {
@Override
public void execute() {
DataImportDialog dataImportDialog = new DataImportDialog(dataImportMode, dialogTitle, path, new OperationWithInput<String>() {
@Override
public void execute(final String importCode) {
eventBus_.fireEvent(new SendToConsoleEvent(importCode, true, true));
}
});
dataImportDialog.showModal();
}
};
}
Aggregations