@Override public void templateWithVersion_SelectedItemChanged() { super.templateWithVersion_SelectedItemChanged(); VmTemplate template = getModel().getTemplateWithVersion().getSelectedItem() != null ? getModel().getTemplateWithVersion().getSelectedItem().getTemplateVersion() : null; if (template == null) { return; } setupWindowModelFrom(template); doChangeDefaultHost(template.getDedicatedVmForVdsList()); updateRngDevice(template.getId()); getModel().getCustomPropertySheet().deserialize(template.getCustomProperties()); if (getModel().getVmType().getSelectedItem() == VmType.HighPerformance && !clusterHasPpcArchitecture()) { getModel().getHostCpu().setEntity(true); } }
@Override public void postDataCenterWithClusterSelectedItemChanged() { updateGraphics(template.getId()); updateDefaultHost(); updateNumOfSockets(); updateQuotaByCluster(template.getQuotaId(), template.getQuotaName()); updateMemoryBalloon(); updateCpuSharesAvailability(); getModel().getCpuSharesAmount().setEntity(template.getCpuShares()); updateCpuSharesSelection(); updateVirtioScsiAvailability(); updateMigrationForLocalSD(); updateOSValues(); if (getModel().getSelectedCluster() != null) { updateCpuProfile(getModel().getSelectedCluster().getId(), template.getCpuProfileId()); } updateCustomPropertySheet(); getModel().getCustomPropertySheet().deserialize(template.getCustomProperties()); updateLeaseStorageDomains(template.getLeaseStorageDomainId()); }
@Override protected void postBuild() { getModel().getBaseTemplate().setIsAvailable(false); getModel().getTemplateVersionName().setIsAvailable(false); getModel().getVmType().setIsChangeable(true); getModel().getEmulatedMachine().setIsAvailable(false); getModel().getCustomCpu().setIsAvailable(false); getModel().getOSType().setIsAvailable(false); updateCustomPropertySheet(latestCluster()); getModel().getCustomPropertySheet().deserialize(template.getCustomProperties()); updateTimeZone(template.getTimeZone()); getModel().getVmInitEnabled().setEntity(template.getVmInit() != null); getModel().getVmInitModel().init(template); getModel().updateResumeBehavior(); }
staticVm.setAutoConverge(entity.getAutoConverge()); staticVm.setMigrateCompressed(entity.getMigrateCompressed()); staticVm.setCustomProperties(entity.getCustomProperties()); staticVm.setCustomEmulatedMachine(entity.getCustomEmulatedMachine()); staticVm.setCustomCpuName(entity.getCustomCpuName());
getModel().getCustomPropertySheet().deserialize(template.getCustomProperties());
obj.setPredefinedProperties(instance.getPredefinedProperties()); obj.setUserDefinedProperties(instance.getUserDefinedProperties()); obj.setCustomProperties(instance.getCustomProperties()); obj.setSmallIconId(instance.getSmallIconId()); obj.setLargeIconId(instance.getLargeIconId());