class ViewHideAlertsButtonPresenter {

    @PostConstruct
    public void init() {
        view.init(this);

        final boolean isAlertsActive = PlaceStatus.OPEN.equals(placeManager.getStatus(MessageConsoleScreen.ALERTS));
        view.setAlertsActive(isAlertsActive);

        placeManager.registerOnOpenCallback(new DefaultPlaceRequest(MessageConsoleScreen.ALERTS),
                                            () -> view.setAlertsActive(true));
        placeManager.registerOnCloseCallback(new DefaultPlaceRequest(MessageConsoleScreen.ALERTS),
                                             () -> view.setAlertsActive(false));
    }

    @Inject public  ViewHideAlertsButtonPresenter(final PlaceManager placeManager,
                                         final View view);

}