using System.Collections.Generic; using Codice.Utils; using PlasticGui.WorkspaceWindow.Diff; namespace Unity.PlasticSCM.Editor.Views.Diff { internal static class GetClientDiffInfos { internal static List FromCategories(List categories) { List result = new List(); foreach (ITreeViewNode node in categories) AddClientDiffInfos(node, result); return result; } static void AddClientDiffInfos(ITreeViewNode node, List result) { if (node is ClientDiffInfo) { result.Add((ClientDiffInfo)node); return; } for (int i = 0; i < node.GetChildrenCount(); i++) AddClientDiffInfos(node.GetChild(i), result); } } }