use of org.ovirt.engine.core.common.action.RemoveNetworkParameters in project ovirt-engine by oVirt.
the class RemoveNetworksModel method onRemove.
public void onRemove() {
ArrayList<ActionParametersBase> pb = new ArrayList<>();
for (Object a : sourceListModel.getSelectedItems()) {
Network network = (Network) a;
if (network.isExternal()) {
pb.add(new RemoveNetworkParameters(network.getId(), getForce().getEntity()));
} else {
pb.add(new RemoveNetworkParameters(network.getId()));
}
}
Frontend.getInstance().runMultipleAction(ActionType.RemoveNetwork, pb);
sourceListModel.setConfirmWindow(null);
}
Aggregations