public static void CreatePadTree(object o) { ValaProject p = o as ValaProject; if (o == null) { return; } ProjectInformation pi = ProjectInformationManager.Instance.Get(p); try { foreach (ProjectFile f in p.Files) { if (f.BuildAction == BuildAction.Compile) { pi.AddFile(f.FilePath); } } foreach (ProjectPackage package in p.Packages) { if (!package.IsProject) { pi.AddPackage(p.Name); } } } catch (IOException) { return; } }