void () { // Commit data of current step final Step currentStep = mySteps.get(myCurrentStep); LOG.assertTrue(currentStep != null); LOG.assertTrue(!isLastStep(), "steps: " + mySteps + " current: " + currentStep); try { currentStep._commit(false); } catch (final CommitStepException exc) { Messages.showErrorDialog( myContentPanel, exc.getMessage() ); return; } myCurrentStep = getNextStep(myCurrentStep); updateStep(JBCardLayout.SwipeDirection.FORWARD); }