ErrorCallback<?> createErrorCallback(Map<Class<? extends Throwable>, CommandWithThrowableDrivenErrorCallback.CommandWithThrowable> errors) { return new CommandWithThrowableDrivenErrorCallback(busyIndicatorView, errors); }
@Override public boolean error(final Message message, final Throwable throwable) { building = false; return super.error(message, throwable); } }
ErrorCallback<?> createErrorCallback(Map<Class<? extends Throwable>, CommandWithThrowableDrivenErrorCallback.CommandWithThrowable> errors) { return new CommandWithThrowableDrivenErrorCallback(busyIndicatorView, errors); }
private void onComplete(final DeploymentMode mode) { busyIndicatorView.showBusyIndicator(CommonConstants.INSTANCE.Saving()); projectService.call(getSuccessCallback(), new CommandWithThrowableDrivenErrorCallback(busyIndicatorView, errors)).newProject(context.getActiveOrganizationalUnit() .orElseThrow(() -> new IllegalStateException("Cannot call project service to create new project when no organizational unit is active.")), pomWizardPage.getPom(), mode); }
private void doSave(final String commitMessage, final DeploymentMode mode) { //Instantiate a new instance on each "save" operation to pass in commit message view.showBusyIndicator(CommonConstants.INSTANCE.Saving()); pomEditorService.call(getSaveSuccessCallback(view.getContent().hashCode()), new CommandWithThrowableDrivenErrorCallback(busyIndicatorView, saveErrorCallbackConfig(commitMessage))) .save(versionRecordManager.getCurrentPath(), view.getContent(), metadata, commitMessage, mode); }