Exemplo n.º 1
0
        }        // GetTag

        public void ActivateItem(int n)
        {
            var reg = Document.ParsedDocument.UserRegions.ElementAt(n);

            MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor extEditor = Document.GetContent <MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor> ();
            if (extEditor != null)
            {
                extEditor.SetCaretTo(Math.Max(1, reg.Region.Start.Line), reg.Region.Start.Column);
            }
        }        // ActivateItem
Exemplo n.º 2
0
        }        // GetTag

        public void ActivateItem(int n)
        {
            var member = memberList[n];

            MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor extEditor = Document.GetContent <MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor> ();
            if (extEditor != null)
            {
                extEditor.SetCaretTo(Math.Max(1, member.Location.Line), member.Location.Column);
            }
        }        // ActivateItem