use of org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel in project ovirt-engine by oVirt.
the class AffinityGroupListModel method newEntity.
private void newEntity() {
if (getWindow() != null) {
return;
}
AffinityGroupModel model = new NewAffinityGroupModel(getNewAffinityGroup(), this, getClusterId(), getClusterName());
model.init();
setWindow(model);
}
use of org.ovirt.engine.ui.uicommonweb.models.configure.scheduling.affinity_groups.model.AffinityGroupModel 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);
}
Aggregations