Initial commit

This commit is contained in:
lethanhsonvsp
2025-11-17 15:02:30 +07:00
commit 0a84b9d75e
15481 changed files with 2009655 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;
}
}
}