projects are by default not executable

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@8025 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Robert Slover 2000-11-04 13:20:40 +00:00
parent 2015c9c907
commit 2ccae66aa5
2 changed files with 14 additions and 1 deletions

View file

@ -174,6 +174,9 @@ static NSString * const PCLibraryVar = @"LIBRARY_VAR";
- (NSString *)projectDescription;
// Returns a string describing the project type
- (BOOL)isExecutable;
// Returns NO by default.
//===========================================================================================
// ==== Miscellaneous
//===========================================================================================

View file

@ -566,6 +566,11 @@
return @"Abstract PCProject class!";
}
- (BOOL)isExecutable
{
return NO;
}
//===========================================================================================
// ==== Miscellaneous
//===========================================================================================
@ -802,7 +807,12 @@
[self showBuildTargetPanel:self];
break;
case 3:
[self showRunView:self];
if ([self isExecutable]) {
[self showRunView:self];
}
else {
NSRunAlertPanel(@"Attention!",@"This project type cannot be executed by itself!",@"OK",nil,nil);
}
break;
case 4:
case 5: