16
16
#import " PBGitDefaults.h"
17
17
#import " PBHistorySearchController.h"
18
18
#import " PBGitStash.h"
19
- #import " PBGitSVStashItem .h"
19
+ #import " PBSourceViewGitStashItem .h"
20
20
#import " PBSidebarTableViewCell.h"
21
21
#import " PBGitRef.h"
22
22
@@ -117,11 +117,11 @@ - (void) observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(
117
117
118
118
if ([@" stashesModified" isEqualToString: (__bridge NSString *)context]) {
119
119
120
- for (PBGitSVStashItem *stashItem in stashes.sortedChildren )
120
+ for (PBSourceViewGitStashItem *stashItem in stashes.sortedChildren )
121
121
[stashes removeChild: stashItem];
122
122
123
123
for (PBGitStash *stash in repository.stashes )
124
- [stashes addChild: [PBGitSVStashItem itemWithStash: stash]];
124
+ [stashes addChild: [PBSourceViewGitStashItem itemWithStash: stash]];
125
125
126
126
[sourceView expandItem: stashes];
127
127
[sourceView reloadItem: stashes reloadChildren: YES ];
@@ -255,12 +255,12 @@ - (void)doubleClicked:(id)object {
255
255
NSInteger rowNumber = [sourceView selectedRow ];
256
256
257
257
id item = [sourceView itemAtRow: rowNumber];
258
- if ([item isKindOfClass: [PBGitSVSubmoduleItem class ]]) {
259
- PBGitSVSubmoduleItem *subModule = item;
258
+ if ([item isKindOfClass: [PBSourceViewGitSubmoduleItem class ]]) {
259
+ PBSourceViewGitSubmoduleItem *subModule = item;
260
260
261
261
[self openSubmoduleAtURL: [subModule path ]];
262
- } else if ([item isKindOfClass: [PBGitSVBranchItem class ]]) {
263
- PBGitSVBranchItem *branch = item;
262
+ } else if ([item isKindOfClass: [PBSourceViewGitBranchItem class ]]) {
263
+ PBSourceViewGitBranchItem *branch = item;
264
264
265
265
NSError *error = nil ;
266
266
BOOL success = [repository checkoutRefish: [branch ref ] error: &error];
@@ -272,7 +272,7 @@ - (void)doubleClicked:(id)object {
272
272
273
273
- (BOOL )outlineView : (NSOutlineView *)outlineView shouldEditTableColumn : (NSTableColumn *)tableColumn item : (id )item
274
274
{
275
- if ([item isKindOfClass: [PBGitSVSubmoduleItem class ]]) {
275
+ if ([item isKindOfClass: [PBSourceViewGitSubmoduleItem class ]]) {
276
276
NSLog (@" hi" );
277
277
}
278
278
return NO ;
@@ -320,9 +320,9 @@ - (BOOL) outlineView:(NSOutlineView *)outlineView shouldShowOutlineCellForItem:(
320
320
- (void )populateList
321
321
{
322
322
PBSourceViewItem *project = [PBSourceViewItem groupItemWithTitle: [repository projectName ]];
323
- project.isUncollapsible = YES ;
323
+ project.uncollapsible = YES ;
324
324
325
- stage = [PBGitSVStageItem stageItem ];
325
+ stage = [PBSourceViewStageItem stageItem ];
326
326
[project addChild: stage];
327
327
328
328
branches = [PBSourceViewItem groupItemWithTitle: @" Branches" ];
@@ -333,14 +333,14 @@ - (void)populateList
333
333
others = [PBSourceViewItem groupItemWithTitle: @" Other" ];
334
334
335
335
for (PBGitStash *stash in repository.stashes )
336
- [stashes addChild: [PBGitSVStashItem itemWithStash: stash]];
336
+ [stashes addChild: [PBSourceViewGitStashItem itemWithStash: stash]];
337
337
338
338
for (PBGitRevSpecifier *rev in repository.branches ) {
339
339
[self addRevSpec: rev];
340
340
}
341
341
342
342
for (GTSubmodule *sub in repository.submodules ) {
343
- [submodules addChild: [PBGitSVSubmoduleItem itemWithSubmodule: sub]];
343
+ [submodules addChild: [PBSourceViewGitSubmoduleItem itemWithSubmodule: sub]];
344
344
}
345
345
346
346
[items addObject: project];
@@ -365,7 +365,7 @@ - (void)expandCollapseItem:(NSNotification*)aNotification
365
365
{
366
366
NSObject * child = [[aNotification userInfo ] valueForKey: @" NSObject" ];
367
367
if ([child isKindOfClass: [PBSourceViewItem class ]]) {
368
- ((PBSourceViewItem*)child).isExpanded = [aNotification.name isEqualToString: NSOutlineViewItemWillExpandNotification ];
368
+ ((PBSourceViewItem *)child).expanded = [aNotification.name isEqualToString: NSOutlineViewItemWillExpandNotification ];
369
369
}
370
370
}
371
371
@@ -402,7 +402,7 @@ - (id)outlineView:(NSOutlineView *)outlineView objectValueForTableColumn:(NSTabl
402
402
403
403
- (void ) updateActionMenu
404
404
{
405
- [actionButton setEnabled: ([[self selectedItem ] ref ] != nil || [[self selectedItem ] isKindOfClass: [PBGitSVSubmoduleItem class ]])];
405
+ [actionButton setEnabled: ([[self selectedItem ] ref ] != nil || [[self selectedItem ] isKindOfClass: [PBSourceViewGitSubmoduleItem class ]])];
406
406
}
407
407
408
408
- (void ) addMenuItemsForRef : (PBGitRef *)ref toMenu : (NSMenu *)menu
@@ -414,7 +414,7 @@ - (void) addMenuItemsForRef:(PBGitRef *)ref toMenu:(NSMenu *)menu
414
414
[menu addItem: menuItem];
415
415
}
416
416
417
- - (void ) addMenuItemsForSubmodule : (PBGitSVSubmoduleItem *)submodule toMenu : (NSMenu *)menu
417
+ - (void ) addMenuItemsForSubmodule : (PBSourceViewGitSubmoduleItem *)submodule toMenu : (NSMenu *)menu
418
418
{
419
419
if (!submodule)
420
420
return ;
@@ -447,8 +447,8 @@ - (NSMenu *) menuForRow:(NSInteger)row
447
447
[self addMenuItemsForRef: ref toMenu: menu];
448
448
}
449
449
450
- if ([viewItem isKindOfClass: [PBGitSVSubmoduleItem class ]]) {
451
- [self addMenuItemsForSubmodule: (PBGitSVSubmoduleItem *)viewItem toMenu: menu];
450
+ if ([viewItem isKindOfClass: [PBSourceViewGitSubmoduleItem class ]]) {
451
+ [self addMenuItemsForSubmodule: (PBSourceViewGitSubmoduleItem *)viewItem toMenu: menu];
452
452
}
453
453
454
454
return menu;
@@ -463,8 +463,8 @@ - (void) menuNeedsUpdate:(NSMenu *)menu
463
463
PBGitRef *ref = [[self selectedItem ] ref ];
464
464
[self addMenuItemsForRef: ref toMenu: menu];
465
465
466
- if ([[self selectedItem ] isKindOfClass: [PBGitSVSubmoduleItem class ]]) {
467
- [self addMenuItemsForSubmodule: (PBGitSVSubmoduleItem *)[self selectedItem ] toMenu: menu];
466
+ if ([[self selectedItem ] isKindOfClass: [PBSourceViewGitSubmoduleItem class ]]) {
467
+ [self addMenuItemsForSubmodule: (PBSourceViewGitSubmoduleItem *)[self selectedItem ] toMenu: menu];
468
468
}
469
469
}
470
470
0 commit comments