Skip to content

Commit 4e9d39b

Browse files
committed
Merge pull request #13 from anton-matosov/master
Added support for EAP bundles
2 parents 13ccc5a + fd761f0 commit 4e9d39b

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

OROpenInAppCode/OROpenInAppCode.m

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,18 @@ - (void)openInAppCode:(id)sender
6767
{
6868
NSURL *currentFileURL = [self currentProjectURL];
6969
if(currentFileURL) {
70-
[[NSWorkspace sharedWorkspace] openURLs:@[currentFileURL]
71-
withAppBundleIdentifier:@"com.jetbrains.AppCode"
72-
options:0
73-
additionalEventParamDescriptor:nil
74-
launchIdentifiers:nil];
70+
NSArray *bundleIds = @[@"com.jetbrains.AppCode-EAP", @"com.jetbrains.AppCode"];
71+
for (NSString *bundleIdentifier in bundleIds)
72+
{
73+
if ([[NSWorkspace sharedWorkspace] openURLs:@[currentFileURL]
74+
withAppBundleIdentifier:bundleIdentifier
75+
options:0
76+
additionalEventParamDescriptor:nil
77+
launchIdentifiers:nil])
78+
{
79+
break;
80+
}
81+
}
7582
}
7683
}
7784

0 commit comments

Comments
 (0)