3434
3535public class ImportSurveyTokensLayout extends AbstractImportLayout {
3636
37+
3738 public ImportSurveyTokensLayout (SurveyDto survey ) {
3839 super ();
3940 SurveyTokenFacade surveyTokenFacade = FacadeProvider .getSurveyTokenFacade ();
@@ -47,14 +48,18 @@ public ImportSurveyTokensLayout(SurveyDto survey) {
4748 addImportCsvComponent (3 , new ImportReceiver (fileNameAddition , file -> {
4849 resetDownloadErrorReportButton ();
4950 try {
50- DataImporter importer = new SurveyTokenImporter (file , currentUser , survey , (ValueSeparator ) separator .getValue ());
51+ DataImporter importer = new SurveyTokenImporter (
52+ file ,
53+ currentUser ,
54+ survey ,
55+ (ValueSeparator ) separator .getValue ());
5156 importer .startImport (this ::extendDownloadErrorReportButton , currentUI , false );
5257 } catch (IOException | CsvValidationException e ) {
5358 new Notification (
54- I18nProperties .getString (Strings .headingImportFailed ),
55- I18nProperties .getString (Strings .messageImportFailed ),
56- Notification .Type .ERROR_MESSAGE ,
57- false ).show (Page .getCurrent ());
59+ I18nProperties .getString (Strings .headingImportFailed ),
60+ I18nProperties .getString (Strings .messageImportFailed ),
61+ Notification .Type .ERROR_MESSAGE ,
62+ false ).show (Page .getCurrent ());
5863 }
5964 }));
6065 addDownloadErrorReportComponent (4 );
0 commit comments