internal static ExpandSelectionAnnotation GetSelectionAnnotation (MonoDevelop.Ide.Editor.TextEditor editor) { var result = editor.Annotation<ExpandSelectionAnnotation> (); if (result == null) { result = new ExpandSelectionAnnotation (editor); editor.AddAnnotation (result); } return result; }
internal static ExpandSelectionAnnotation GetSelectionAnnotation(MonoDevelop.Ide.Editor.TextEditor editor) { var result = editor.Annotation <ExpandSelectionAnnotation> (); if (result == null) { result = new ExpandSelectionAnnotation(editor); editor.AddAnnotation(result); } return(result); }