use of org.ovirt.engine.ui.uicommonweb.models.vms.RemoveVmInterfaceModel in project ovirt-engine by oVirt.
the class NetworkVmListModel method remove.
private void remove() {
if (getWindow() != null) {
return;
}
List<VmNetworkInterface> vnics = new ArrayList<>();
for (Object item : getSelectedItems()) {
PairQueryable<VmNetworkInterface, VM> pair = (PairQueryable<VmNetworkInterface, VM>) item;
vnics.add(pair.getFirst());
}
RemoveVmInterfaceModel model = new RemoveVmInterfaceModel(this, vnics, true);
setWindow(model);
}
Aggregations