void () { VcsPushUi dialog = myDefaultAction.myDialog; PushActionBase realAction = myDefaultAction.myRealAction; setEnabled(dialog.canPush()); putValue(Action.NAME, realAction.getText(dialog, enabled)); putValue(Action.SHORT_DESCRIPTION, realAction.getDescription(dialog, enabled)); }