UpdateOrStatusOptionsDialog (Project project, LinkedHashMap<Configurable, AbstractVcs> envToConfMap, String scopeName) { return new UpdateOrStatusOptionsDialog(project, VcsBundle.message("action.display.name.update.scope", scopeName), envToConfMap) { @Override @NlsSafe protected String getActionNameForDimensions() { return "update-v2"; } @NotNull @Override protected String getDoNotShowMessage() { return VcsBundle.message("update.checkbox.don.t.show.again"); } @Override protected boolean isToBeShown() { return ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.UPDATE).getValue(); } @Override protected void setToBeShown(boolean value, boolean onOk) { if (onOk) { ProjectLevelVcsManagerEx.getInstanceEx(project).getOptions(VcsConfiguration.StandardOption.UPDATE).setValue(value); } } }; }