1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Detect if a project is closed then the source file can't be accessed in

it.
This commit is contained in:
Thomas Fletcher 2002-11-14 19:31:06 +00:00
parent 4cacb5b9b9
commit 99a0791947
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2002-11-14 Thomas Fletcher
* src/.../launch/ui/CMainTab.java
Updated error condition to catch closed projects.
2002-11-13 Thomas Fletcher
* src/.../launch/ui/CDebuggerTab.java
Updated punctuation.

View file

@ -324,6 +324,10 @@ public class CMainTab extends CLaunchConfigurationTab {
setErrorMessage("Program does not exist");
return false;
}
if (!project.isOpen()) {
setErrorMessage("Project must be opened");
return false;
}
if (!project.getFile(name).exists()) {
setErrorMessage("Program does not exist");
return false;