This commit is contained in:
boccioli_m
2015-06-10 15:25:37 +02:00
parent 218e236974
commit a6523ed766

View File

@@ -295,11 +295,11 @@ public class TestingList extends Panel {
SwingUtils.showMessage(this, "", deviceName[0]);
*/ if (System.getProperty("os.name").toLowerCase().contains("windows")) {
String cmd;
cmd = "notepad3.exe " + TESTS_LOG_DEFAULT_DIR;
cmd = "notepad.exe " + TESTS_LOG_DEFAULT_DIR;
try {
Runtime.getRuntime().exec(cmd);
} catch (IOException ex) {
SwingUtils.showMessage(this, "", "jButtonOpenLogActionPerformed() "+ ex.toString() + " \nPlease open the file manually (file dir: "+TESTS_LOG_DEFAULT_DIR);
SwingUtils.showMessage(this, "", "jButtonOpenLogActionPerformed() "+ ex.toString() + " \nPlease open the file manually. \nFile dir: "+TESTS_LOG_DEFAULT_DIR);
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
}
} else {
@@ -307,7 +307,7 @@ public class TestingList extends Panel {
try {
Desktop.getDesktop().edit(log);
} catch (IOException ex) {
SwingUtils.showMessage(this, "", "jButtonOpenLogActionPerformed() "+ ex.toString() + " \nPlease open the file manually (file dir: "+TESTS_LOG_DEFAULT_DIR);
SwingUtils.showMessage(this, "", "jButtonOpenLogActionPerformed() "+ ex.toString() + " \nPlease open the file manually. \nFile dir: "+TESTS_LOG_DEFAULT_DIR);
Logger.getLogger(TestingList.class.getName()).log(Level.SEVERE, null, ex);
}
}