equal
deleted
inserted
replaced
27 |
27 |
28 /* virtual file-system */ |
28 /* virtual file-system */ |
29 |
29 |
30 val vfs_prefix = "isabelle-session:" |
30 val vfs_prefix = "isabelle-session:" |
31 |
31 |
32 class Session_Entry(name: String, path: String) |
32 class Session_Entry(name: String, path: String, marker: String) |
33 extends VFSFile(name, path, null, VFSFile.FILE, 0L, false) |
33 extends VFSFile(name, path, null, VFSFile.FILE, 0L, false) |
34 { |
34 { |
|
35 override def getPathMarker: String = marker |
|
36 |
35 override def getExtendedAttribute(att: String): String = |
37 override def getExtendedAttribute(att: String): String = |
36 if (att == JEdit_VFS.EA_SIZE) null |
38 if (att == JEdit_VFS.EA_SIZE) null |
37 else super.getExtendedAttribute(att) |
39 else super.getExtendedAttribute(att) |
38 } |
40 } |
39 |
41 |
59 val path = |
61 val path = |
60 Position.File.unapply(info.pos) match { |
62 Position.File.unapply(info.pos) match { |
61 case Some(path) => File.platform_path(path) |
63 case Some(path) => File.platform_path(path) |
62 case None => null |
64 case None => null |
63 } |
65 } |
64 new Session_Entry(name, path) |
66 val marker = |
|
67 Position.Line.unapply(info.pos) match { |
|
68 case Some(line) => "+line:" + line |
|
69 case None => null |
|
70 } |
|
71 new Session_Entry(name, path, marker) |
65 }).toArray |
72 }).toArray |
66 } |
73 } |
67 case _ => null |
74 case _ => null |
68 } |
75 } |
69 } |
76 } |