Source:
<code>private void initModalHandlers() { this.fileSubmit.addClickHandler( event -> PackagesPanelUi.this.gwtXSRFService.generateSecurityToken(new AsyncCallback<GwtXSRFToken>() { @Override public void onFailure(Throwable ex) { FailureHandler.handle(ex); } @Override public void onSuccess(GwtXSRFToken token) { PackagesPanelUi.this.xsrfTokenFieldFile.setValue(token.getToken()); if (!"".equals(PackagesPanelUi.this.filePath.getFilename())) { PackagesPanelUi.this.packagesFormFile.submit(); } else { PackagesPanelUi.this.uploadModal.hide(); <START> PackagesPanelUi.this.uploadErrorText.setText(MSGS.missingFileUpload()); <END> PackagesPanelUi.this.uploadErrorModal.show(); } } })); this.fileCancel.addClickHandler(event -> PackagesPanelUi.this.uploadModal.hide()); this.urlSubmit.addClickHandler( event -> PackagesPanelUi.this.gwtXSRFService.generateSecurityToken(new AsyncCallback<GwtXSRFToken>() { @Override public void onFailure(Throwable ex) { FailureHandler.handle(ex); } @Override public void onSuccess(GwtXSRFToken token) { if (!"".equals(PackagesPanelUi.this.formUrl.getValue())) { PackagesPanelUi.this.xsrfTokenFieldUrl.setValue(token.getToken()); PackagesPanelUi.this.packagesFormUrl.submit(); } else { PackagesPanelUi.this.uploadModal.hide(); PackagesPanelUi.this.uploadErrorText.setText(MSGS.missingFileUpload()); PackagesPanelUi.this.uploadErrorModal.show(); } } })); this.urlCancel.addClickHandler(event -> PackagesPanelUi.this.uploadModal.hide()); this.btnConfirmMarketplaceInstall.addClickHandler(event -> { if (PackagesPanelUi.this.marketplaceDescriptor != null) { installMarketplaceDp(PackagesPanelUi.this.marketplaceDescriptor); PackagesPanelUi.this.marketplaceDescriptor = null; } }); }</code><technical_language>pelase change header to: " * Copyright (c) 2011, 2020 Eurotech and/or affiliates"</technical_language>

Target:
private void initModalHandlers() { this.fileSubmit.addClickHandler( event -> PackagesPanelUi.this.gwtXSRFService.generateSecurityToken(new AsyncCallback<GwtXSRFToken>() { @Override public void onFailure(Throwable ex) { FailureHandler.handle(ex); } @Override public void onSuccess(GwtXSRFToken token) { PackagesPanelUi.this.xsrfTokenFieldFile.setValue(token.getToken()); if (!"".equals(PackagesPanelUi.this.filePath.getFilename())) { PackagesPanelUi.this.packagesFormFile.submit(); } else { PackagesPanelUi.this.packagesGroupFile.setValidationState(ValidationState.ERROR); } } })); this.fileCancel.addClickHandler(event -> PackagesPanelUi.this.uploadModal.hide()); this.urlSubmit.addClickHandler( event -> PackagesPanelUi.this.gwtXSRFService.generateSecurityToken(new AsyncCallback<GwtXSRFToken>() { @Override public void onFailure(Throwable ex) { FailureHandler.handle(ex); } @Override public void onSuccess(GwtXSRFToken token) { if (!"".equals(PackagesPanelUi.this.formUrl.getValue())) { PackagesPanelUi.this.xsrfTokenFieldUrl.setValue(token.getToken()); PackagesPanelUi.this.packagesFormUrl.submit(); } else { PackagesPanelUi.this.packagesGroupUrl.setValidationState(ValidationState.ERROR); } } })); this.urlCancel.addClickHandler(event -> PackagesPanelUi.this.uploadModal.hide()); this.btnConfirmMarketplaceInstall.addClickHandler(event -> { if (PackagesPanelUi.this.marketplaceDescriptor != null) { installMarketplaceDp(PackagesPanelUi.this.marketplaceDescriptor); PackagesPanelUi.this.marketplaceDescriptor = null; } }); }