Ejemplo n.º 1
0
        private TabView(IVsWindowFrame frame)
        {
            this.frame = frame ?? throw new ArgumentNullException(nameof(frame));

            var defaultName = frame.GetCaption();
            var title       = frame.GetToolWindowView().GetShortTitle();

            var name  = defaultName.IsNullOrEmpty() ? title : defaultName;
            var index = name.IndexOf(" - ");

            originalName = index < 0 ? name : name.Substring(0, index);

            if (names.ContainsKey(originalName))
            {
                SetName(names[originalName]);
            }
        }