[Title] emulator-manager : add checking emualtor to the modify menu (cli)
authorjihye kim <jihye1128.kim@samsung.com>
Sat, 26 Jan 2013 11:25:18 +0000 (20:25 +0900)
committerjihye kim <jihye1128.kim@samsung.com>
Mon, 28 Jan 2013 05:07:55 +0000 (14:07 +0900)
[Desc.] add checking emualtor to the modify menu (cli)
[Issue] N/A

VERSION
package/changelog
package/pkginfo.manifest
src/org/tizen/emulator/manager/vms/VMsWorker.java

diff --git a/VERSION b/VERSION
index e47889e..8d2d807 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.1.0 RC4
+2.1.0 RC5
index f3f7832..a99ba6d 100644 (file)
@@ -1,3 +1,7 @@
+* 1.3.75
+- add checking emulator to the modify menu(cli)
+== jihye kim <jihye1128.kim@samsung.com> 2013-01-26
+
 * 1.3.74
 - update version
 - modify ram-size
index 858e98b..0e97da1 100644 (file)
@@ -1,5 +1,5 @@
 Source: emulator-manager
-Version: 1.3.74
+Version: 1.3.75
 Maintainer: Yeong-Kyoon Lee<yeongkyoon.lee@samsung.com>
 
 Package: emulator-manager
index 6a3cd3f..c34205f 100644 (file)
@@ -75,6 +75,9 @@ public class VMsWorker {
        }
 
        public void modifyVM(VMPropertyValue oldVM, VMPropertyValue newVM) throws VMsWorkerException {
+               if(EmulatorManager.isConsoleMode() && property.getWorker().isRunningNow()) {
+                       throw new VMsWorkerException("Not allowed to modify active VMs\n" + "[" + property.getName() + "] is running now...");
+               }
                Modifier.modify(property, oldVM, newVM);
        }