예제 #1
0
        private void ShowRotCallback(object sender, EventArgs e)
        {
            var atv = ActiveTextView;

            if (TacnyMenuProxy != null && atv != null)
            {
                TacnyMenuProxy.ShowRot(atv);
            }
        }
예제 #2
0
        private void TacticReplaceAllCallback(object s, EventArgs e)
        {
            var atv = ActiveTextView;

            if (TacnyMenuProxy != null && atv?.TextBuffer != null)
            {
                TacnyMenuProxy.ReplaceAll(atv.TextBuffer);
            }
        }
예제 #3
0
        private void TacticReplaceCallback(object sender, EventArgs e)
        {
            var atv = ActiveTextView;

            if (TacnyMenuProxy != null && atv != null)
            {
                TacnyMenuProxy.ReplaceOneCall(atv);
            }
        }
예제 #4
0
        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);
        }