mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-20 18:32:17 +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;
|
- (NSString *)projectDescription;
|
||||||
// Returns a string describing the project type
|
// Returns a string describing the project type
|
||||||
|
|
||||||
|
- (BOOL)isExecutable;
|
||||||
|
// Returns NO by default.
|
||||||
|
|
||||||
//===========================================================================================
|
//===========================================================================================
|
||||||
// ==== Miscellaneous
|
// ==== Miscellaneous
|
||||||
//===========================================================================================
|
//===========================================================================================
|
||||||
|
|
|
@ -566,6 +566,11 @@
|
||||||
return @"Abstract PCProject class!";
|
return @"Abstract PCProject class!";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (BOOL)isExecutable
|
||||||
|
{
|
||||||
|
return NO;
|
||||||
|
}
|
||||||
|
|
||||||
//===========================================================================================
|
//===========================================================================================
|
||||||
// ==== Miscellaneous
|
// ==== Miscellaneous
|
||||||
//===========================================================================================
|
//===========================================================================================
|
||||||
|
@ -802,7 +807,12 @@
|
||||||
[self showBuildTargetPanel:self];
|
[self showBuildTargetPanel:self];
|
||||||
break;
|
break;
|
||||||
case 3:
|
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;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
case 5:
|
case 5:
|
||||||
|
|
Loading…
Reference in a new issue