UpdateOrStatusOptionsDialog (Project project, LinkedHashMap<Configurable, AbstractVcs> envToConfMap, String scopeName) { return new UpdateOrStatusOptionsDialog(project, VcsBundle.message("action.display.name.check.scope.status", scopeName), envToConfMap) { @Override protected String getActionNameForDimensions() { return "status"; } @Override protected boolean isToBeShown() { return ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.STATUS).getValue(); } @Override protected void setToBeShown(boolean value, boolean onOk) { if (onOk) { ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.STATUS).setValue(value); } } }; }