public void Rebuild (IProgressStatus monitor) { database.Repair (monitor, currentDomain); // A full rebuild may cause the domain to change if (!string.IsNullOrEmpty (startupDirectory)) currentDomain = database.GetFolderDomain (null, startupDirectory); }