Example #1
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);
        }