--- a/src/Pure/General/path.scala Mon Jul 25 11:19:08 2022 +0200
+++ b/src/Pure/General/path.scala Mon Jul 25 14:40:45 2022 +0200
@@ -11,6 +11,7 @@
import java.util.{Map => JMap}
import java.io.{File => JFile}
import java.nio.file.{Path => JPath}
+import java.net.{URI, URL}
import scala.util.matching.Regex
@@ -313,6 +314,9 @@
def is_file: Boolean = file.isFile
def is_dir: Boolean = file.isDirectory
+ def uri: URI = file.toURI
+ def url: URL = uri.toURL
+
def java_path: JPath = file.toPath
def absolute_file: JFile = File.absolute(file)
--- a/src/Tools/jEdit/src/jedit_lib.scala Mon Jul 25 11:19:08 2022 +0200
+++ b/src/Tools/jEdit/src/jedit_lib.scala Mon Jul 25 14:40:45 2022 +0200
@@ -287,7 +287,7 @@
def load_icon(name: String): Icon = {
val name1 =
if (name.startsWith("idea-icons/")) {
- val file = Path.explode("$ISABELLE_IDEA_ICONS").file.toURI.toASCIIString
+ val file = Path.explode("$ISABELLE_IDEA_ICONS").uri.toASCIIString
"jar:" + file + "!/" + name
}
else name