Search in sources :

Example 1 with InheritableBoolean

use of com.google.gerrit.extensions.client.InheritableBoolean in project gerrit by GerritCodeReview.

the class ProjectInfoScreen method doSave.

private void doSave() {
    enableForm(false);
    saveProject.setEnabled(false);
    InheritableBoolean esp = enableSignedPush != null ? getBool(enableSignedPush) : null;
    InheritableBoolean rsp = requireSignedPush != null ? getBool(requireSignedPush) : null;
    ProjectApi.setConfig(getProjectKey(), descTxt.getText().trim(), getBool(contributorAgreements), getBool(contentMerge), getBool(signedOffBy), getBool(newChangeForAllNotInTarget), getBool(requireChangeID), esp, rsp, getBool(rejectImplicitMerges), getBool(enableReviewerByEmail), maxObjectSizeLimit.getText().trim(), SubmitType.valueOf(submitType.getValue(submitType.getSelectedIndex())), ProjectState.valueOf(state.getValue(state.getSelectedIndex())), getPluginConfigValues(), new GerritCallback<ConfigInfo>() {

        @Override
        public void onSuccess(ConfigInfo result) {
            enableForm();
            display(result);
        }

        @Override
        public void onFailure(Throwable caught) {
            enableForm();
            super.onFailure(caught);
        }
    });
}
Also used : InheritableBoolean(com.google.gerrit.extensions.client.InheritableBoolean) ConfigInfo(com.google.gerrit.client.projects.ConfigInfo)

Aggregations

ConfigInfo (com.google.gerrit.client.projects.ConfigInfo)1 InheritableBoolean (com.google.gerrit.extensions.client.InheritableBoolean)1