ec.getDevice().getRAM().getSize().setUnit("MiB");
ec.getDevice().getRAM().getSize().setValue(newVM.ramSize);
- if (newVM.maxTouchCount > 0) {
+ if (newVM.maxTouchCount >= 0) {
ec.getDevice().setTouch(factory.createTouchType());
ec.getDevice().getTouch().setMaxTouchPoint(newVM.maxTouchCount);
}
}
}
+ public void resetBaseImage(BaseImage image) {
+ if (image == null) {
+ template.setAvailable(false);
+ return;
+ }
+
+ this.baseImage = image;
+ baseImagePath = image.getPath();
+ if (image.getPlatform().getPlugin() == null
+ || image.getItemList() == null) {
+ template.setAvailable(false);
+ } else {
+ settingConfigure(baseImage.getDefaultProperty());
+ }
+ }
+
@Override
public VMPropertyValue clone() {
VMPropertyValue dest = new VMPropertyValue();