void () { // Commit data of current step final AbstractWizardStepEx currentStep = mySteps.get(myCurrentStep); try { currentStep._commit(false); } catch (final CommitStepCancelledException e) { return; } catch (CommitStepException e) { Messages.showErrorDialog(getContentPane(), e.getMessage()); return; } if (isLastStep()) { doOKAction(); return; } myCurrentStep = getNextStep(myCurrentStep); updateStep(JBCardLayout.SwipeDirection.FORWARD); }