protected override void OnRemovedFromEditor(TextEditorData data) { SetCaretMode(CaretMode.Insert, data); if (viTextEditor != null) { statusArea.RemoveFromParentAndDestroy(); statusArea = null; viTextEditor = null; } }
protected override void OnAddedToEditor(TextEditorData data) { ViEditor.SetMode(ViEditorMode.Normal); SetCaretMode(CaretMode.Block, data); ViActions.RetreatFromLineEnd(data); viTextEditor = data.Parent; if (viTextEditor != null) { statusArea = new ViStatusArea(viTextEditor); } }
protected override void OnRemovedFromEditor(TextEditorData data) { data.Caret.Mode = CaretMode.Insert; if (viTextEditor != null) { statusArea.RemoveFromParentAndDestroy (); statusArea = null; viTextEditor = null; } }
protected override void OnAddedToEditor(TextEditorData data) { data.Caret.Mode = CaretMode.Block; ViActions.RetreatFromLineEnd (data); viTextEditor = data.Parent; if (viTextEditor != null) { statusArea = new ViStatusArea (viTextEditor); } }
protected override void OnAddedToEditor(TextEditorData data) { ViEditor.SetMode (ViEditorMode.Normal); SetCaretMode (CaretMode.Block, data); ViActions.RetreatFromLineEnd (data); viTextEditor = data.Parent; if (viTextEditor != null) { statusArea = new ViStatusArea (viTextEditor); } }