From f058dc76b97a6e16c7f9ddb7eacfd3501e6a1da8 Mon Sep 17 00:00:00 2001 From: jihye kim Date: Sat, 26 Jan 2013 20:25:18 +0900 Subject: [PATCH] [Title] emulator-manager : add checking emualtor to the modify menu (cli) [Desc.] add checking emualtor to the modify menu (cli) [Issue] N/A --- VERSION | 2 +- package/changelog | 4 ++++ package/pkginfo.manifest | 2 +- src/org/tizen/emulator/manager/vms/VMsWorker.java | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index e47889e..8d2d807 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0 RC4 +2.1.0 RC5 diff --git a/package/changelog b/package/changelog index f3f7832..a99ba6d 100644 --- a/package/changelog +++ b/package/changelog @@ -1,3 +1,7 @@ +* 1.3.75 +- add checking emulator to the modify menu(cli) +== jihye kim 2013-01-26 + * 1.3.74 - update version - modify ram-size diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index 858e98b..0e97da1 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,5 +1,5 @@ Source: emulator-manager -Version: 1.3.74 +Version: 1.3.75 Maintainer: Yeong-Kyoon Lee Package: emulator-manager diff --git a/src/org/tizen/emulator/manager/vms/VMsWorker.java b/src/org/tizen/emulator/manager/vms/VMsWorker.java index 6a3cd3f..c34205f 100644 --- a/src/org/tizen/emulator/manager/vms/VMsWorker.java +++ b/src/org/tizen/emulator/manager/vms/VMsWorker.java @@ -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); } -- 2.7.4