void (JBCardLayout.SwipeDirection direction) { //it would be better to pass 'direction' to 'updateStep' as a parameter, but since that method is used and overridden in plugins // we cannot do it without breaking compatibility try { myTransitionDirection = direction; updateStep(); } finally { myTransitionDirection = JBCardLayout.SwipeDirection.AUTO; } }