mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
27 lines
626 B
Objective-C
27 lines
626 B
Objective-C
//
|
|
// PBOpenDocumentCommand.m
|
|
// GitX
|
|
//
|
|
// Created by Tomasz Krasnyk on 10-11-07.
|
|
// Copyright 2010 __MyCompanyName__. All rights reserved.
|
|
//
|
|
|
|
#import "PBOpenDocumentCommand.h"
|
|
#import "PBRepositoryDocumentController.h"
|
|
#import "PBGitRepository.h"
|
|
|
|
@implementation PBOpenDocumentCommand
|
|
|
|
- (id) initWithDocumentAbsolutePath:(NSString *) path {
|
|
if ((self = [super initWithDisplayName:@"Open" parameters:nil repository:nil])) {
|
|
documentURL = [[NSURL alloc] initWithString:path];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void) invoke {
|
|
[[PBRepositoryDocumentController sharedDocumentController] documentForLocation:documentURL];
|
|
}
|
|
|
|
@end
|