mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2025-08-05 03:27:49 +00:00
Skip inner folders of the bundle on macOS
This commit is contained in:
@@ -235,6 +235,10 @@ public final class LanguagePlugin extends AbstractIDEPlugin {
|
||||
return null;
|
||||
}
|
||||
File eclipseVersionFolder = FileUtility.getCanonicalFile(new File(uri)); // "eclipse"
|
||||
if ( Platform.getOS().equals(Platform.OS_MACOSX)){
|
||||
// Skip inner folders of the bundle on macOS
|
||||
eclipseVersionFolder = eclipseVersionFolder.getParentFile().getParentFile();
|
||||
}
|
||||
File eclipseFolder = eclipseVersionFolder.getParentFile(); // "Eclipse"
|
||||
File ideFolder = eclipseFolder.getParentFile(); // "IDE"
|
||||
File toolsFolder = ideFolder.getParentFile(); // "Tools
|
||||
|
Reference in New Issue
Block a user