Search in sources :

Example 1 with EditAffinityGroupModel

use of org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel in project ovirt-engine by oVirt.

the class AffinityGroupListModel method edit.

private void edit() {
    if (getWindow() != null) {
        return;
    }
    AffinityGroup affinityGroup = getSelectedItem();
    if (affinityGroup == null) {
        return;
    }
    AffinityGroupModel model = new EditAffinityGroupModel(affinityGroup, this, getClusterId(), getClusterName());
    model.init();
    setWindow(model);
}
Also used : EditAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel) AffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel) EditAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel) NewAffinityGroupModel(org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.NewAffinityGroupModel) AffinityGroup(org.ovirt.engine.core.common.scheduling.AffinityGroup)

Aggregations

AffinityGroup (org.ovirt.engine.core.common.scheduling.AffinityGroup)1 AffinityGroupModel (org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel)1 EditAffinityGroupModel (org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.EditAffinityGroupModel)1 NewAffinityGroupModel (org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.NewAffinityGroupModel)1