mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Extend the don't check program to also not check the project. This is to support hardware debugging and project-less debugging.
This commit is contained in:
parent
738955feca
commit
234a259089
1 changed files with 29 additions and 28 deletions
|
@ -504,6 +504,9 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
setErrorMessage(null);
|
setErrorMessage(null);
|
||||||
setMessage(null);
|
setMessage(null);
|
||||||
|
|
||||||
|
if (dontCheckProgram)
|
||||||
|
return true;
|
||||||
|
|
||||||
String name = fProjText.getText().trim();
|
String name = fProjText.getText().trim();
|
||||||
if (name.length() == 0) {
|
if (name.length() == 0) {
|
||||||
setErrorMessage(LaunchMessages.getString("CMainTab.Project_not_specified")); //$NON-NLS-1$
|
setErrorMessage(LaunchMessages.getString("CMainTab.Project_not_specified")); //$NON-NLS-1$
|
||||||
|
@ -519,7 +522,6 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!dontCheckProgram) {
|
|
||||||
name = fProgText.getText().trim();
|
name = fProgText.getText().trim();
|
||||||
if (name.length() == 0) {
|
if (name.length() == 0) {
|
||||||
setErrorMessage(LaunchMessages.getString("CMainTab.Program_not_specified")); //$NON-NLS-1$
|
setErrorMessage(LaunchMessages.getString("CMainTab.Program_not_specified")); //$NON-NLS-1$
|
||||||
|
@ -552,7 +554,6 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
setErrorMessage(e.getLocalizedMessage());
|
setErrorMessage(e.getLocalizedMessage());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue