void TreeNodeCreated(object sender, TreeViewEventArgs e)
        {
            SolutionNode sn = e.Node as SolutionNode;

            if (sn != null)
            {
                GitStatusCache.ClearCachedStatus(sn.Solution.FileName);
                OverlayIconManager.Enqueue(sn);
            }
            else
            {
                DirectoryNode dn = e.Node as DirectoryNode;
                if (dn != null)
                {
                    OverlayIconManager.Enqueue(dn);
                }
                else
                {
                    FileNode fn = e.Node as FileNode;
                    if (fn != null)
                    {
                        OverlayIconManager.Enqueue(fn);
                    }
                }
            }
        }
示例#2
0
 Action AfterCommand(string nodeFileName, AbstractProjectBrowserTreeNode node)
 {
     return(delegate {
         WorkbenchSingleton.AssertMainThread();
         // and then refresh the project browser:
         GitStatusCache.ClearCachedStatus(nodeFileName);
         OverlayIconManager.EnqueueRecursive(node);
         OverlayIconManager.EnqueueParents(node);
     });
 }
        void ClearStatusCacheAndEnqueueFile(string fileName)
        {
            GitStatusCache.ClearCachedStatus(fileName);

            ProjectBrowserPad pad = ProjectBrowserPad.Instance;

            if (pad == null)
            {
                return;
            }
            FileNode node = pad.ProjectBrowserControl.FindFileNode(fileName);

            if (node == null)
            {
                return;
            }
            OverlayIconManager.EnqueueParents(node);
        }