mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 01:51:09 +00:00
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:
parent
2015c9c907
commit
2ccae66aa5
2 changed files with 14 additions and 1 deletions
|
@ -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
|
||||
//===========================================================================================
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue