@Override
protected void afterShowAction() {
orderPlanningController.setOrder(reload(mode.getOrder()));
orderPlanningController.setShowedTask(null);
Order order = orderPlanningController.getOrder();
Map<String, Object> arguments = new HashMap<String, Object>();
arguments.put("orderPlanningController",
orderPlanningController);
if (breadcrumbs.getChildren() != null) {
breadcrumbs.getChildren().clear();
}
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
breadcrumbs.appendChild(new Label(getSchedulingLabel()));
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
breadcrumbs.appendChild(new Label(_("Project Scheduling")));
if (mode.isOf(ModeType.ORDER)) {
orderPlanningController.getOrderCRUDController()
.checkUserCanRead(order);
Label nameLabel = new Label(order.getName());
nameLabel.setTooltiptext(order.getName() + "."
+ order.getDescription());
nameLabel.setMaxlength(MAX_ORDERNAME_LENGHT);
Label schedulingStateLabel = new Label(_(order.getState()
.toString()));
schedulingStateLabel.setSclass("scheduling-state "
+ order.getSchedulingState().getCssClass());
schedulingStateLabel.setTooltiptext(_(order
.getSchedulingState().getStateName()));
breadcrumbs.appendChild(new Image(BREADCRUMBS_SEPARATOR));
breadcrumbs.appendChild(nameLabel);
breadcrumbs.appendChild(schedulingStateLabel);