暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

DiffSelection.cs 772B

123456789101112131415161718192021222324252627282930
  1. using System.Collections.Generic;
  2. using PlasticGui.WorkspaceWindow.Diff;
  3. namespace Unity.PlasticSCM.Editor.Views.Diff
  4. {
  5. internal static class DiffSelection
  6. {
  7. internal static List<ClientDiffInfo> GetSelectedDiffs(
  8. DiffTreeView treeView)
  9. {
  10. return treeView.GetSelectedDiffs(true);
  11. }
  12. internal static List<ClientDiffInfo> GetSelectedDiffsWithoutMeta(
  13. DiffTreeView treeView)
  14. {
  15. return treeView.GetSelectedDiffs(false);
  16. }
  17. internal static ClientDiffInfo GetSelectedDiff(
  18. DiffTreeView treeView)
  19. {
  20. if (!treeView.HasSelection())
  21. return null;
  22. return treeView.GetSelectedDiffs(false)[0];
  23. }
  24. }
  25. }