Search in sources :

Example 1 with DataImportDialog

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();
        }
    };
}
Also used : DataImportDialog(org.rstudio.studio.client.workbench.views.environment.dataimport.DataImportDialog) Command(com.google.gwt.user.client.Command) SendToConsoleEvent(org.rstudio.studio.client.workbench.views.console.events.SendToConsoleEvent)

Aggregations

Command (com.google.gwt.user.client.Command)1 SendToConsoleEvent (org.rstudio.studio.client.workbench.views.console.events.SendToConsoleEvent)1 DataImportDialog (org.rstudio.studio.client.workbench.views.environment.dataimport.DataImportDialog)1