示例#1
0
        private void RefreshSelection()
        {
            _stateBar.SetSelectionText(_parser.State.FindSelectedDeclaration(_vbe.ActiveCodePane));

            var currentStatus = _parser.State.Status;

            if (_lastStatus != currentStatus)
            {
                _appMenus.EvaluateCanExecute(_parser.State);
            }

            _lastStatus = currentStatus;
        }
示例#2
0
        private void RefreshSelection()
        {
            var selectedDeclaration = _parser.State.FindSelectedDeclaration(_vbe.ActiveCodePane);

            _stateBar.SetSelectionText(selectedDeclaration);

            var currentStatus = _parser.State.Status;

            if (ShouldEvaluateCanExecute(selectedDeclaration, currentStatus))
            {
                _appMenus.EvaluateCanExecute(_parser.State);
            }

            _lastStatus = currentStatus;
            _lastSelectedDeclaration = selectedDeclaration;
        }