VMWorker: delete misused 'Message.getString()' function
authorjihye424.kim <jihye424.kim@samsung.com>
Tue, 8 Sep 2015 05:04:30 +0000 (14:04 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 8 Sep 2015 07:44:39 +0000 (16:44 +0900)
Change-Id: Ie4215a559b1e627ae41ead3572045f3ea2d7c985
Signed-off-by: jihye424.kim <jihye424.kim@samsung.com>
src/org/tizen/emulator/manager/vms/VMWorkerCommon.java

index 1e0e19c..3ccf24e 100644 (file)
@@ -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<String> cmd = new ArrayList<String>();
                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