} 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;
}
}
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;
} 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;
}
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;
}
}
} 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