Commits

Thibaut Colar committed 010bcf7

Using space root() method to determine space root for "find in space" command, so custom spaces can specify own root.

  • Participants
  • Parent commits 56bb27f

Comments (0)

Files changed (3)

File src/brie/fan/space/FileSpace.fan

     this.curFile = dir + path
   }
 
+  const Uri path
+
   const File dir
 
-  const Uri path
+  override const Str dis
 
-  override const Str dis
+  override File? root() {dir}
 
   override Image icon() { sys.theme.iconDir }
 

File src/brie/fan/space/PodSpace.fan

   ** Pod name
   const Str name
 
-  ** Top of source directory
   const File dir
 
   ** Active file
   ** Whether this is a pod or a pod group
   const Bool isGroup
 
+  override File? root() {dir}
+
   override Str dis() { name }
 
   override Image icon() { isGroup ? sys.theme.iconPodGroup : sys.theme.iconPod }

File src/brie/fan/space/Space.fan

   ** Return active pod for this space
   abstract PodInfo? curPod()
 
+  ** Return the space root directory
+  virtual File? root() {null}
+
   ** Current type being view/edited
   virtual TypeInfo? curType() { null }