From: jihye424.kim Date: Tue, 8 Sep 2015 05:04:30 +0000 (+0900) Subject: VMWorker: delete misused 'Message.getString()' function X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ab0ae7f7a716c92673cb14bcaf66221ae1b4721;p=sdk%2Femulator%2Femulator-manager.git VMWorker: delete misused 'Message.getString()' function Change-Id: Ie4215a559b1e627ae41ead3572045f3ea2d7c985 Signed-off-by: jihye424.kim --- diff --git a/src/org/tizen/emulator/manager/vms/VMWorkerCommon.java b/src/org/tizen/emulator/manager/vms/VMWorkerCommon.java index 1e0e19c..3ccf24e 100644 --- a/src/org/tizen/emulator/manager/vms/VMWorkerCommon.java +++ b/src/org/tizen/emulator/manager/vms/VMWorkerCommon.java @@ -513,7 +513,7 @@ public class VMWorkerCommon implements IVMWorker { } else if (EmulatorManager.isMac()) { String imagePath = prop.getConfiguration().getBaseInformation() .getDiskImage().getCurrentDiskImage().getValue(); - if (line.contains(Messages.getString("emulator-x86")) && line.contains(imagePath)) { //$NON-NLS-1$ + if (line.contains("emulator-x86") && line.contains(imagePath)) { //$NON-NLS-1$ return imagePath; } } @@ -524,18 +524,18 @@ public class VMWorkerCommon implements IVMWorker { private static Process makeCheckingPropcess() { List cmd = new ArrayList(); if (EmulatorManager.isLinux()) { - cmd.add(Messages.getString("/bin/ps")); //$NON-NLS-1$ - cmd.add(Messages.getString("ef")); //$NON-NLS-1$ + cmd.add("/bin/ps"); //$NON-NLS-1$ + cmd.add("ef"); //$NON-NLS-1$ } else if (EmulatorManager.isWin()) { - cmd.add(Messages.getString("tasklist")); //$NON-NLS-1$ - cmd.add(Messages.getString("/V")); //$NON-NLS-1$ - cmd.add(Messages.getString("/FI")); //$NON-NLS-1$ - cmd.add(Messages.getString("\"IMAGENAME eq java.exe\"")); //$NON-NLS-1$ - cmd.add(Messages.getString("/FO")); //$NON-NLS-1$ - cmd.add(Messages.getString("CSV")); //$NON-NLS-1$ + cmd.add("tasklist"); //$NON-NLS-1$ + cmd.add("/V"); //$NON-NLS-1$ + cmd.add("/FI"); //$NON-NLS-1$ + cmd.add("\"IMAGENAME eq java.exe\""); //$NON-NLS-1$ + cmd.add("/FO"); //$NON-NLS-1$ + cmd.add("CSV"); //$NON-NLS-1$ } else if (EmulatorManager.isMac()) { - cmd.add(Messages.getString("/bin/ps")); //$NON-NLS-1$ - cmd.add(Messages.getString("-ef")); //$NON-NLS-1$ + cmd.add("/bin/ps"); //$NON-NLS-1$ + cmd.add("-ef"); //$NON-NLS-1$ } ProcessBuilder pb = null; @@ -547,7 +547,7 @@ public class VMWorkerCommon implements IVMWorker { } catch (IOException e) { EMLogger.getLogger().log( Level.SEVERE, - Messages.getString("Error occurred while checking if the same VM.") //$NON-NLS-1$ + "Error occurred while checking if the same VM." //$NON-NLS-1$ + StringResources.NEW_LINE + e.getMessage()); return null; } @@ -592,8 +592,8 @@ public class VMWorkerCommon implements IVMWorker { if (re != null) { EMLogger.getLogger().log( Level.INFO, - Messages.getString("emulator instance with the same name is running now (") //$NON-NLS-1$ - + re + Messages.getString(")")); //$NON-NLS-1$ + "emulator instance with the same name is running now (" //$NON-NLS-1$ + + re + ")"); //$NON-NLS-1$ result = true; } } @@ -606,7 +606,7 @@ public class VMWorkerCommon implements IVMWorker { } catch (IOException err) { EMLogger.getLogger().log( Level.SEVERE, - Messages.getString("Error occurred while checking if the same VM.") //$NON-NLS-1$ + "Error occurred while checking if the same VM." //$NON-NLS-1$ + StringResources.NEW_LINE + err.getMessage()); /* * if (!EmulatorManager.isConsoleMode()) { MessageDialog msg = new