Search in sources :

Example 1 with VmSnapshotListViewItem

use of org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotListViewItem in project ovirt-engine by oVirt.

the class SubTabVirtualMachineSnapshotView method createListViewItem.

@Override
public PatternflyListViewItem<Snapshot> createListViewItem(Snapshot selectedItem) {
    HashMap<Guid, SnapshotModel> snapshotsMap = getDetailModel().getSnapshotsMap();
    SnapshotModel snapshotModel = snapshotsMap.get(selectedItem.getId());
    VmSnapshotListViewItem newItem = new VmSnapshotListViewItem(selectedItem.getDescription(), selectedItem, getDetailModel(), snapshotModel);
    snapshotModel.updateVmConfiguration(returnValue -> newItem.updateValues(snapshotModel));
    return newItem;
}
Also used : Guid(org.ovirt.engine.core.compat.Guid) VmSnapshotListViewItem(org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotListViewItem) SnapshotModel(org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel)

Aggregations

Guid (org.ovirt.engine.core.compat.Guid)1 VmSnapshotListViewItem (org.ovirt.engine.ui.common.widget.uicommon.vm.VmSnapshotListViewItem)1 SnapshotModel (org.ovirt.engine.ui.uicommonweb.models.vms.SnapshotModel)1