Change to make the class added by the parser be selected in the outline/classes view.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/gorm/trunk@20414 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2004-12-03 12:19:18 +00:00
parent 935fba9568
commit 191c716d3b
4 changed files with 18 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2004-12-03 07:09 Gregory John Casamento <greg_casamento@yahoo.com>
* GormClassManager.[hm]: New method allCustomClassNames which
returns the customClasses array.
* GormDocument.m: Change in handleNotification: method to
select the class just added.
2004-12-02 06:20 Gregory John Casamento <greg_casamento@yahoo.com>
* GormObjCHeaderParser/OCClass.m: [OCClass parse] added

View file

@ -75,6 +75,7 @@
- (NSArray*) allSubclassesOf: (NSString *)superClass;
- (NSArray*) customSubClassesOf: (NSString *)superclass;
- (NSArray*) allCustomSubclassesOf: (NSString *)superclass;
- (NSArray*) allCustomClassNames;
- (BOOL) addClassNamed: (NSString*)className
withSuperClassNamed: (NSString*)superClassName

View file

@ -698,7 +698,8 @@
- (NSArray*) allCustomClassNames
{
return [customClassMap allKeys];
// return [customClassMap allKeys];
return customClasses;
}
- (NSArray*) allClassNames

View file

@ -1687,9 +1687,17 @@ static NSImage *fileImage = nil;
}
else if ([name isEqual: GormDidAddClassNotification])
{
NSArray *customClasses = [classManager allCustomClassNames];
NSString *newClass = [customClasses lastObject];
// go to the class which was just loaded in the classes view...
[classesView reloadData];
[selectionBox setContentView: classesScrollView];
if(newClass != nil)
{
[self selectClass: newClass];
}
}
}