protected Action getActionForStep(int step) { EWaypointType waypoint; if (step <= 0) { waypoint = SetTradingWaypointAction.EWaypointType.WAYPOINT_1; } else if (step <= 1) { waypoint = SetTradingWaypointAction.EWaypointType.WAYPOINT_2; } else if (step <= 2) { waypoint = SetTradingWaypointAction.EWaypointType.WAYPOINT_3; } else { waypoint = SetTradingWaypointAction.EWaypointType.DESTINATION; } return new AskSetTradingWaypointAction(waypoint); } }
case ASK_SET_TRADING_WAYPOINT: goBackContent = activeContent; final EWaypointType wp = ((AskSetTradingWaypointAction) action).getWaypoint(); setContent(new SelectPointMessage( Labels.getString("click_set_trading_waypoint_" + wp)) {