mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-19 00:51:51 +00:00
The class and header files are now being displayed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@7275 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
611d39e478
commit
e568aa4b2e
2 changed files with 23 additions and 3 deletions
|
@ -41,15 +41,32 @@
|
|||
NSTextView *pTextView;
|
||||
|
||||
if ([[sender selectedCell] isLeaf]) {
|
||||
NSString *ltitle = [[sender selectedCell] stringValue];
|
||||
NSString *ctitle = [[sender selectedCellInColumn:0] stringValue];
|
||||
NSString *text = [NSString stringWithFormat:@"Display File %@",[[sender selectedCell] stringValue]
|
||||
];
|
||||
NSString *ctitlef = [[project projectPath] stringByAppendingPathComponent:ltitle];
|
||||
|
||||
pTextView = [project textView];
|
||||
|
||||
NSLog(@"****** %@",ctitlef);
|
||||
|
||||
if ([ctitle isEqualToString:@"Classes"]) {
|
||||
[pTextView setString:text];
|
||||
NSString *f = [NSString stringWithContentsOfFile:ctitlef];
|
||||
|
||||
[pTextView setString:f];
|
||||
}
|
||||
else if ([ctitle isEqualToString:@"Headers"]) {
|
||||
NSString *f = [NSString stringWithContentsOfFile:ctitlef];
|
||||
|
||||
[pTextView setString:f];
|
||||
}
|
||||
else if ([ctitle isEqualToString:@"Other Sources"]) {
|
||||
NSString *f = [NSString stringWithContentsOfFile:ctitlef];
|
||||
|
||||
[pTextView setString:f];
|
||||
}
|
||||
|
||||
// This should not be needed!
|
||||
[pTextView display];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -88,3 +88,6 @@
|
|||
- (void)fileManager:(id)sender didAddFile:(NSString *)file forKey:(NSString *)key;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue