Search in sources :

Example 1 with EditContributorsPopUpPresenter

use of org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter in project kie-wb-common by kiegroup.

the class ProjectScreen method editContributors.

public void editContributors() {
    if (this.canEditContributors()) {
        final EditContributorsPopUpPresenter popUp = editContributorsPopUpPresenter.get();
        popUp.show(this.workspaceProject.getOrganizationalUnit());
    }
}
Also used : EditContributorsPopUpPresenter(org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter)

Example 2 with EditContributorsPopUpPresenter

use of org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter in project kie-wb-common by kiegroup.

the class LibraryScreen method editContributors.

public void editContributors() {
    if (userCanUpdateOrganizationalUnit()) {
        final EditContributorsPopUpPresenter editContributorsPopUpPresenter = editContributorsPopUpPresenters.get();
        // Can call get here because condition passed.
        editContributorsPopUpPresenter.show(projectContext.getActiveOrganizationalUnit().get());
    }
}
Also used : EditContributorsPopUpPresenter(org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter)

Example 3 with EditContributorsPopUpPresenter

use of org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter in project kie-wb-common by kiegroup.

the class ContributorsListPresenter method edit.

public void edit() {
    if (userCanUpdateOrganizationalUnit()) {
        final EditContributorsPopUpPresenter editContributorsPopUpPresenter = editContributorsPopUpPresenters.get();
        // There has to be an active OU if the condition passes, so just call get.
        editContributorsPopUpPresenter.show(projectContext.getActiveOrganizationalUnit().get());
    }
}
Also used : EditContributorsPopUpPresenter(org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter)

Aggregations

EditContributorsPopUpPresenter (org.kie.workbench.common.screens.library.client.screens.organizationalunit.contributors.edit.EditContributorsPopUpPresenter)3