void OnProjectRenamed(object sender, CombineEntryRenamedEventArgs e)
 {
     UnitTestGroup parent = Parent as UnitTestGroup;
     if (parent != null)
         parent.UpdateTests ();
 }
        protected virtual void OnNameChanged(CombineEntryRenamedEventArgs e)
        {
            Combine topMostParentCombine = this.parentCombine;

            if (topMostParentCombine != null) {
                while (topMostParentCombine.ParentCombine != null) {
                    topMostParentCombine = topMostParentCombine.ParentCombine;
                }

                foreach (Project project in topMostParentCombine.GetAllProjects()) {
                    if (project == this) {
                        continue;
                    }

                    project.RenameReferences(e.OldName, e.NewName);
                }
            }

            if (NameChanged != null) {
                NameChanged (this, e);
            }
        }
 void OnCombineRenamed(object sender, CombineEntryRenamedEventArgs e)
 {
     ITreeBuilder tb = Context.GetTreeBuilder (e.CombineEntry);
     if (tb != null) tb.Update ();
 }
        void OnProjectRenamed(object sender, CombineEntryRenamedEventArgs args)
        {
            lock (databases)
            {
                ProjectCodeCompletionDatabase db = GetProjectDatabase ((Project) args.CombineEntry);
                if (db == null) return;

                db.Rename (args.NewName);
                databases.Remove ("Project:" + args.OldName);
                databases ["Project:" + args.NewName] = db;
                RefreshProjectDatabases ();
                CleanUnusedDatabases ();
            }
        }