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.NameLocation.Line), member.NameLocation.Column); } }
void JumpTo(int line, int column) { MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor extEditor = IdeApp.Workbench.ActiveDocument.GetContent <MonoDevelop.Ide.Gui.Content.IExtensibleTextEditor> (); if (extEditor != null) { extEditor.SetCaretTo(Math.Max(1, line), column); } }