Change-Id: Id0536d0ae3cc6dfe23b128f7bb8a02f1b8a58ba3
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
}
public void removeEmulator(VMProperty vm) {
+ if (this == ProfileList.getTotalProfile()) {
+ vm.getPropertyValue().baseImage.getPlatform()
+ .getProfileClass().getEmulatorList().remove(vm);
+ } else {
+ ProfileList.getTotalProfile().getEmulatorList().remove(vm);
+ }
+ EmulatorVMList.getInstance().removeProperty(vm);
vmList.remove(vm);
}
try {
if (handling.deleteVirtualMachine(currentProperty, needCheck)) {
int index = currentProfile.getEmulatorList().indexOf(currentProperty) - 1;
- currentProfile.getEmulatorList().remove(currentProperty);
+ currentProfile.removeEmulator(currentProperty);
currentProperty = (index < 0 ? null : currentProfile.getEmulatorList().get(index));
MainDialog.redraw();
return true;
}
}
+ public void removeProperty(VMProperty prop) {
+ if (prop != null) {
+ propertiesList.remove(prop);
+ }
+ }
+
public boolean storeXML(VMProperty property) {
return storeXML(property, null);
}