private void ShowRotCallback(object sender, EventArgs e) { var atv = ActiveTextView; if (TacnyMenuProxy != null && atv != null) { TacnyMenuProxy.ShowRot(atv); } }
private void TacticReplaceAllCallback(object s, EventArgs e) { var atv = ActiveTextView; if (TacnyMenuProxy != null && atv?.TextBuffer != null) { TacnyMenuProxy.ReplaceAll(atv.TextBuffer); } }
private void TacticReplaceCallback(object sender, EventArgs e) { var atv = ActiveTextView; if (TacnyMenuProxy != null && atv != null) { TacnyMenuProxy.ReplaceOneCall(atv); } }
private void RefactorTacticsContextBeforeQuery(object sender, EventArgs e) { var atv = ActiveTextView; var menuitem = sender as OleMenuCommand; if (TacnyMenuProxy == null || atv?.TextBuffer == null || menuitem == null) { return; } menuitem.Enabled = TacnyMenuProxy.CanExpandAtThisPosition(atv); }