/** * Check if device with the general type given exists in the map. */ public static boolean isVmDeviceExists(Map<Guid, VmDevice> vmManagedDeviceMap, VmDeviceGeneralType generalType) { return findVmDeviceByGeneralType(vmManagedDeviceMap, generalType) != null; }
} else { deactivate(); VmDevice rngDevice = VmDeviceCommonUtils.findVmDeviceByGeneralType( vmBase.getManagedDeviceMap(), VmDeviceGeneralType.RNG); getModel().getIsRngEnabled().setEntity(rngDevice != null);
private void addDefaultGraphicsDevice() { VmDevice device = VmDeviceCommonUtils.findVmDeviceByGeneralType( vmBase.getManagedDeviceMap(), VmDeviceGeneralType.GRAPHICS); if (device != null) {