using UnityEditor; using Codice.Client.BaseCommands; namespace Unity.PlasticSCM.Editor.AssetMenu { internal class AssetMenuRoutingOperations : IAssetMenuOperations, IAssetFilesFilterPatternsMenuOperations { void IAssetMenuOperations.ShowPendingChanges() { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.ShowPendingChanges(); } void IAssetMenuOperations.Add() { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.Add(); } void IAssetMenuOperations.Checkout() { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.Checkout(); } void IAssetMenuOperations.Checkin() { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.Checkin(); } void IAssetMenuOperations.Undo() { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.Undo(); } void IAssetMenuOperations.ShowDiff() { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.ShowDiff(); } void IAssetMenuOperations.ShowHistory() { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.ShowHistory(); } void IAssetFilesFilterPatternsMenuOperations.AddFilesFilterPatterns( FilterTypes type, FilterActions action, FilterOperationType operation) { PlasticWindow plasticWindow = EditorWindow.GetWindow(); plasticWindow.AddFilesFilterPatterns(type, action, operation); } } }