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;
}
Aggregations