File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 18
18
19
19
import java .io .BufferedReader ;
20
20
import java .io .IOException ;
21
+ import java .net .URI ;
21
22
import java .net .URISyntaxException ;
22
23
import java .nio .charset .StandardCharsets ;
23
24
import java .nio .file .Path ;
40
41
import org .eclipse .core .runtime .Platform ;
41
42
import org .eclipse .core .runtime .Status ;
42
43
import org .eclipse .core .runtime .SubMonitor ;
44
+ import org .eclipse .core .runtime .URIUtil ;
43
45
import org .eclipse .core .runtime .jobs .Job ;
44
46
import org .eclipse .core .runtime .preferences .ConfigurationScope ;
45
47
import org .eclipse .core .runtime .preferences .IEclipsePreferences ;
@@ -269,7 +271,8 @@ private static Optional<Path> getInstallationLocation() {
269
271
// https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fmisc%2Fruntime-options.html&anchor=locations
270
272
try {
271
273
Location installLocation = Platform .getConfigurationLocation ();
272
- return Optional .of (Path .of (installLocation .getURL ().toURI ())); // assume location has a file-URL
274
+ URI location = URIUtil .toURI (installLocation .getURL ());
275
+ return Optional .of (Path .of (location )); // assume location has a file-URL
273
276
} catch (URISyntaxException e ) { // ignore
274
277
}
275
278
return Optional .empty ();
You can’t perform that action at this time.
0 commit comments