first commit

This commit is contained in:
lethanhsonvsp
2025-11-17 15:36:52 +07:00
commit 6f2eafa33c
14093 changed files with 1253472 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using UnityEditor.IMGUI.Controls;
using PlasticGui;
using Unity.PlasticSCM.Editor.Views.PendingChanges;
namespace Unity.PlasticSCM.Editor.UI.Tree
{
internal static class TreeViewItemExtensions
{
internal static IPlasticTreeNode GetPlasticTreeNode(this TreeViewItem item)
{
if (item is ChangelistTreeViewItem)
{
return ((ChangelistTreeViewItem)item).Changelist;
}
if (item is ChangeCategoryTreeViewItem)
{
return ((ChangeCategoryTreeViewItem)item).Category;
}
return ((ChangeTreeViewItem)item).ChangeInfo;
}
}
}