diff --git a/plugin/src/main/java/com/nitorcreations/robotframework/eclipseide/editors/ResourceManager.java b/plugin/src/main/java/com/nitorcreations/robotframework/eclipseide/editors/ResourceManager.java index 6534d61..d87af43 100644 --- a/plugin/src/main/java/com/nitorcreations/robotframework/eclipseide/editors/ResourceManager.java +++ b/plugin/src/main/java/com/nitorcreations/robotframework/eclipseide/editors/ResourceManager.java @@ -18,7 +18,6 @@ import java.io.File; import java.io.IOException; import java.net.URI; -import java.net.URISyntaxException; import java.util.Collections; import java.util.HashMap; import java.util.Map; @@ -125,11 +124,7 @@ private IFile getBestFileForLocation(IWorkspaceRoot root, IPath path) { } private URI uriForPath(IPath path) { - try { - return new URI("file", null, path.toString(), null); - } catch (URISyntaxException e) { - throw new RuntimeException(e); - } + return new File(path.toString()).toURI(); } @Override