Commit 311b29d0 authored by Adam Knapp's avatar Adam Knapp
Browse files

Warning and error dialogs added



Change-Id: I62385bf34b7890874a3ab278645c9217a813fe71
Signed-off-by: default avatarAdam Knapp <adam.knapp@sigmatechnology.se>
parent 5bb3c5eb
...@@ -93,8 +93,11 @@ public class GenerateRunConfigParallel extends GenerateRunConfigBase { ...@@ -93,8 +93,11 @@ public class GenerateRunConfigParallel extends GenerateRunConfigBase {
String localAddress = configHandler.getLocalAddress(); String localAddress = configHandler.getLocalAddress();
if (isNullOrEmpty(localAddress)) { if (isNullOrEmpty(localAddress)) {
localAddress = "127.0.0.1"; localAddress = "127.0.0.1";
TITANConsole.println("\"LocalAddress\" parameter is missing from configuration file: " ErrorReporter.parallelWarningDisplayInMessageDialog(
+ file.getFullPath().toOSString()); "Error while generating the default launch configuration for project " + projectName,
"\"LocalAddress\" parameter is missing from configuration file: " + file.getFullPath().toOSString() +
"\nUsing default: " + localAddress);
TITANConsole.println("\"LocalAddress\" parameter is missing from configuration file: " + file.getFullPath().toOSString());
TITANConsole.println("Using default: " + localAddress); TITANConsole.println("Using default: " + localAddress);
} }
...@@ -103,6 +106,10 @@ public class GenerateRunConfigParallel extends GenerateRunConfigBase { ...@@ -103,6 +106,10 @@ public class GenerateRunConfigParallel extends GenerateRunConfigBase {
if (tcpPort == 0) { if (tcpPort == 0) {
ErrorReporter.logError("\"TCPPort\" parameter is missing from configuration file: " ErrorReporter.logError("\"TCPPort\" parameter is missing from configuration file: "
+ file.getFullPath().toOSString()); + file.getFullPath().toOSString());
ErrorReporter.parallelErrorDisplayInMessageDialog(
"Error while generating the default launch configuration for project " + projectName,
"\"TCPPort\" parameter is missing from configuration file: " + file.getFullPath().toOSString() +
"\nCannot continue");
TITANConsole.println("\"TCPPort\" parameter is missing from configuration file: " TITANConsole.println("\"TCPPort\" parameter is missing from configuration file: "
+ file.getFullPath().toOSString()); + file.getFullPath().toOSString());
TITANConsole.println("Cannot continue"); TITANConsole.println("Cannot continue");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment