internal void IncludeFileNode(UntrackedFileNode node) { string path = node.Url; ModuleTracker.UpgradeModule(path); TreeOperations.Replace(this, node, () => CreateFileNode(path)); }
internal void ExcludeFileNode(BaseFileNode srcNode) { // Ask mod tracker for a professional opinion string fullPath = srcNode.Url; ModuleRemovalResult downgradeResult = ModuleTracker.DowngradeModule(fullPath); if (downgradeResult.IsReferenced) { TreeOperations.Replace(this, srcNode, () => CreateUntrackedNode(fullPath)); } else { foreach (string path in downgradeResult.Orphans) { TreeOperations.RemoveSubnodeFromHierarchy(this, path, false); } } }
private void ReplaceWithTracked() { TreeOperations.Replace(this.ProjectMgr, this, () => this.ProjectMgr.CreateFolderNode(this.Url)); }