You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
using UnityEditor;
|
|
|
|
namespace Unity.PlasticSCM.Editor.AssetMenu
|
|
{
|
|
internal class AssetMenuRoutingOperations: IAssetMenuOperations
|
|
{
|
|
void IAssetMenuOperations.ShowPendingChanges()
|
|
{
|
|
PlasticWindow plasticWindow = EditorWindow.GetWindow<PlasticWindow>();
|
|
plasticWindow.ShowPendingChanges();
|
|
}
|
|
|
|
void IAssetMenuOperations.Add()
|
|
{
|
|
PlasticWindow plasticWindow = EditorWindow.GetWindow<PlasticWindow>();
|
|
plasticWindow.Add();
|
|
}
|
|
|
|
void IAssetMenuOperations.Checkout()
|
|
{
|
|
PlasticWindow plasticWindow = EditorWindow.GetWindow<PlasticWindow>();
|
|
plasticWindow.Checkout();
|
|
}
|
|
|
|
void IAssetMenuOperations.Checkin()
|
|
{
|
|
PlasticWindow plasticWindow = EditorWindow.GetWindow<PlasticWindow>();
|
|
plasticWindow.Checkin();
|
|
}
|
|
|
|
void IAssetMenuOperations.Undo()
|
|
{
|
|
PlasticWindow plasticWindow = EditorWindow.GetWindow<PlasticWindow>();
|
|
plasticWindow.Undo();
|
|
}
|
|
|
|
void IAssetMenuOperations.ShowDiff()
|
|
{
|
|
PlasticWindow plasticWindow = EditorWindow.GetWindow<PlasticWindow>();
|
|
plasticWindow.ShowDiff();
|
|
}
|
|
|
|
void IAssetMenuOperations.ShowHistory()
|
|
{
|
|
PlasticWindow plasticWindow = EditorWindow.GetWindow<PlasticWindow>();
|
|
plasticWindow.ShowHistory();
|
|
}
|
|
}
|
|
} |