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:
parent
4cacb5b9b9
commit
99a0791947
2 changed files with 8 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue