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:
Robert Slover 2000-08-28 19:04:15 +00:00
parent 611d39e478
commit e568aa4b2e
2 changed files with 23 additions and 3 deletions

View file

@ -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];
}
}

View file

@ -88,3 +88,6 @@
- (void)fileManager:(id)sender didAddFile:(NSString *)file forKey:(NSString *)key;
@end