From fe4a252eade40776cf795da60dc23699f9307fc9 Mon Sep 17 00:00:00 2001 From: sungmin ha Date: Tue, 28 Aug 2012 16:16:05 +0900 Subject: [PATCH] [Title]bug fixed for prevent modifications when emulator is running [Type]Bugfix [Module]emulator-manager [Priority]Critical [Jira#]N_SE-7651 [Redmine#] // Redmine Isuue Number [Problem] // Problem Description [Cause] // Cause Description [Solution] // Solution Description [TestCase] // Executed the test-target (How to) --- package/pkginfo.manifest | 2 +- src/org/tizen/emulator/manager/ui/MainDialog.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/package/pkginfo.manifest b/package/pkginfo.manifest index 0296c7a..7b5bca5 100644 --- a/package/pkginfo.manifest +++ b/package/pkginfo.manifest @@ -1,5 +1,5 @@ Source: emulator-manager -Version: 1.3.27 +Version: 1.3.28 Maintainer: Yeong-Kyoon Lee Package: emulator-manager diff --git a/src/org/tizen/emulator/manager/ui/MainDialog.java b/src/org/tizen/emulator/manager/ui/MainDialog.java index 173a6f4..6bde266 100644 --- a/src/org/tizen/emulator/manager/ui/MainDialog.java +++ b/src/org/tizen/emulator/manager/ui/MainDialog.java @@ -189,7 +189,13 @@ public class MainDialog { public void widgetSelected(SelectionEvent e) { String type = leftButton.getText(); if (type.equals(StringResource.MODIFY)) { - openModifyView(detailView.getCurrentPoperty()); + MessageDialog msg = new MessageDialog(); + VMsProperty property = detailView.getCurrentPoperty(); + if(property.getWorker().isRunningNow()) { + msg.openInfoDialog("Canceled modify process!\n" + "[" + property.getName() + "] is running now..."); + return; + } + openModifyView(property); } else if (type.equals(StringResource.CREATE)) { openCreateView(); } else if (type.equals(StringResource.CANCEL)) { -- 2.7.4