internal static bool HandleSourceCodeEntity (ITreeNavigator navigator, TextEditorData data) { if (IsFromAssembly (navigator)) return false; var method = (IUnresolvedEntity)navigator.DataItem; data.Text = Mono.TextEditor.Utils.TextFileUtility.ReadAllText (method.Region.FileName); data.Caret.Location = method.Region.Begin; data.CenterToCaret (); return true; }