Search in sources :

Example 1 with VmInterfaceModel

use of org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel in project ovirt-engine by oVirt.

the class TemplateInterfaceListModel method newEntity.

private void newEntity() {
    if (getWindow() != null) {
        return;
    }
    VmInterfaceModel model = NewTemplateInterfaceModel.createInstance(getEntity(), getEntity().getStoragePoolId(), getEntity().getCompatibilityVersion(), (ArrayList<VmNetworkInterface>) getItems(), this);
    setWindow(model);
}
Also used : VmNetworkInterface(org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface) VmInterfaceModel(org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel)

Example 2 with VmInterfaceModel

use of org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel in project ovirt-engine by oVirt.

the class TemplateInterfaceListModel method edit.

private void edit() {
    if (getWindow() != null) {
        return;
    }
    VmInterfaceModel model = EditTemplateInterfaceModel.createInstance(getEntity(), getEntity().getStoragePoolId(), getEntity().getCompatibilityVersion(), (ArrayList<VmNetworkInterface>) getItems(), getSelectedItem(), this);
    setWindow(model);
}
Also used : VmNetworkInterface(org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface) VmInterfaceModel(org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel)

Aggregations

VmNetworkInterface (org.ovirt.engine.core.common.businessentities.network.VmNetworkInterface)2 VmInterfaceModel (org.ovirt.engine.ui.uicommonweb.models.vms.VmInterfaceModel)2