File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -46,22 +46,38 @@ + (NSBundle *)pluginBundle
46
46
47
47
- (NSString *)scriptPath
48
48
{
49
- return [[self .directoryPath stringByAppendingPathComponent: FOLDAR_NAME] stringByAppendingPathComponent: @" script.rb" ];
49
+ NSString *tempScriptPath = [[self .directoryPath stringByAppendingPathComponent: FOLDAR_NAME] stringByAppendingPathComponent: @" script.rb" ];
50
+ if (tempScriptPath) {
51
+ _scriptPath = tempScriptPath;
52
+ }
53
+ return _scriptPath;
50
54
}
51
55
52
56
- (NSString *)projectName
53
57
{
54
- return [VWKProject projectForKeyWindow ].projectOriginalName ;
58
+ NSString *tempProjectName = [VWKProject projectForKeyWindow ].projectOriginalName ;
59
+ if (tempProjectName) {
60
+ _projectName = tempProjectName;
61
+ }
62
+ return _projectName;
55
63
}
56
64
57
65
- (NSString *)zipFilePath
58
66
{
59
- return [[KSHObjcUML pluginBundle ] pathForResource: FOLDAR_NAME ofType: @" zip" ];
67
+ NSString *tempZipFilePath = [[KSHObjcUML pluginBundle ] pathForResource: FOLDAR_NAME ofType: @" zip" ];
68
+ if (tempZipFilePath) {
69
+ _zipFilePath = tempZipFilePath;
70
+ }
71
+ return _zipFilePath;
60
72
}
61
73
62
74
- (NSString *)directoryPath
63
75
{
64
- return [VWKProject projectForKeyWindow ].directoryPath ;
76
+ NSString *tempDirectoryPath = [VWKProject projectForKeyWindow ].directoryPath ;
77
+ if (tempDirectoryPath) {
78
+ _directoryPath = tempDirectoryPath;
79
+ }
80
+ return _directoryPath;
65
81
}
66
82
67
83
+ (void )pluginDidLoad : (NSBundle *)plugin
You can’t perform that action at this time.
0 commit comments