mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +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
|
2002-11-13 Thomas Fletcher
|
||||||
* src/.../launch/ui/CDebuggerTab.java
|
* src/.../launch/ui/CDebuggerTab.java
|
||||||
Updated punctuation.
|
Updated punctuation.
|
||||||
|
|
|
@ -324,6 +324,10 @@ public class CMainTab extends CLaunchConfigurationTab {
|
||||||
setErrorMessage("Program does not exist");
|
setErrorMessage("Program does not exist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (!project.isOpen()) {
|
||||||
|
setErrorMessage("Project must be opened");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (!project.getFile(name).exists()) {
|
if (!project.getFile(name).exists()) {
|
||||||
setErrorMessage("Program does not exist");
|
setErrorMessage("Program does not exist");
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue