mirror of
https://github.com/peterdell/wudsn-ide.git
synced 2024-12-21 03:29:32 +00:00
Skip inner folders of the bundle on macOS
This commit is contained in:
parent
e02917d7c1
commit
710071d793
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user