A game about forced loneliness, made by TACStudios
at master 30 lines 772 B view raw
1using System.Collections.Generic; 2 3using PlasticGui.WorkspaceWindow.Diff; 4 5namespace Unity.PlasticSCM.Editor.Views.Diff 6{ 7 internal static class DiffSelection 8 { 9 internal static List<ClientDiffInfo> GetSelectedDiffs( 10 DiffTreeView treeView) 11 { 12 return treeView.GetSelectedDiffs(true); 13 } 14 15 internal static List<ClientDiffInfo> GetSelectedDiffsWithoutMeta( 16 DiffTreeView treeView) 17 { 18 return treeView.GetSelectedDiffs(false); 19 } 20 21 internal static ClientDiffInfo GetSelectedDiff( 22 DiffTreeView treeView) 23 { 24 if (!treeView.HasSelection()) 25 return null; 26 27 return treeView.GetSelectedDiffs(false)[0]; 28 } 29 } 30}