class ErrorPopup {

    protected void onDetail() {
        boolean detailCollapsed = view.isDetailCollapsed();
        view.setCollapseDetailIcon(!detailCollapsed);
        if (detailCollapsed) {
            view.setDetailLabel(view.getCloseDetailLabel());
        } else {
            view.setDetailLabel(view.getShowDetailLabel());
        }
    }

    @Inject public  ErrorPopup(final View view);

}