using UnityEditor; using Plugins.PlasticSCM.Editor.Diff; using Unity.PlasticSCM.Editor.CloudDrive; using Unity.PlasticSCM.Editor.Views.BranchExplorer; using Unity.PlasticSCM.Editor.Views.BranchExplorer.Options; namespace Unity.PlasticSCM.Editor.UI { internal static class GetWindowIfOpened { internal static UVCSWindow UVCS() { if (!EditorWindow.HasOpenInstances()) return null; return EditorWindow.GetWindow(null, false); } internal static BranchExplorerWindow BranchExplorer() { if (!EditorWindow.HasOpenInstances()) return null; return EditorWindow.GetWindow(null, false); } internal static BranchExplorerOptionsWindow BranchExplorerOptions() { if (!EditorWindow.HasOpenInstances()) return null; return EditorWindow.GetWindow(null, false); } internal static CloudDriveWindow CloudDrive() { if (!EditorWindow.HasOpenInstances()) return null; return EditorWindow.GetWindow(null, false); } internal static DiffWindow Diff() { if (!EditorWindow.HasOpenInstances()) return null; return EditorWindow.GetWindow(null, false); } } }