Skip to content
Snippets Groups Projects
Commit dae3c614 authored by Thomas's avatar Thomas
Browse files

Added Documentation to the toURI fix on windows.

parent c7d7f4b5
Branches
No related tags found
No related merge requests found
...@@ -321,7 +321,15 @@ public class TransformationExecutor extends EpsilonStandalone { ...@@ -321,7 +321,15 @@ public class TransformationExecutor extends EpsilonStandalone {
return models; return models;
} }
private URI resolveURL(URL url) throws URISyntaxException { /**
* Translator from URLs to URIs that creates correct URIs, in contrast to URL.toURI().
* (cf. https://stackoverflow.com/questions/14676966/escape-result-of-filelocator-resolveurl/14677157)
*
* @param url the given URL
* @return a new correctly initialized URI object
* @throws URISyntaxException
*/
private static URI resolveURL(URL url) throws URISyntaxException {
return new URI(url.getProtocol(), url.getPath(), null); return new URI(url.getProtocol(), url.getPath(), null);
} }
} }
...@@ -186,6 +186,14 @@ public class FRaMEDFeatureEditor extends EditorPart { ...@@ -186,6 +186,14 @@ public class FRaMEDFeatureEditor extends EditorPart {
} }
} }
/**
* Translator from URLs to URIs that creates correct URIs, in contrast to URL.toURI().
* (cf. https://stackoverflow.com/questions/14676966/escape-result-of-filelocator-resolveurl/14677157)
*
* @param url the given URL
* @return a new correctly initialized URI object
* @throws URISyntaxException
*/
private static URI resolveURL(URL url) throws URISyntaxException { private static URI resolveURL(URL url) throws URISyntaxException {
return new URI(url.getProtocol(), url.getPath(), null); return new URI(url.getProtocol(), url.getPath(), null);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment