Ejemplo n.º 1
0
 public SearchResultItem(Declaration parentScopeDeclaration, NavigateCodeEventArgs navigationInfo, string resultText, Selection?highlight = null)
 {
     _navigateArgs  = navigationInfo;
     ParentScope    = parentScopeDeclaration;
     _resultText    = resultText;
     HighlightIndex = highlight;
 }
        private void FindAllImplementationsForSelection(object sender, NavigateCodeEventArgs e)
        {
            var handler = FindAllImplementations;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
Ejemplo n.º 3
0
        private void FindAllReferencesForSelection(object sender, NavigateCodeEventArgs e)
        {
            var handler = FindAllReferences;

            if (handler != null)
            {
                handler(sender, e);
            }
        }
Ejemplo n.º 4
0
 public void OnNavigate()
 {
     var handler = Navigate;
     if (handler != null && _selectedItem != null)
     {
         var arg = new NavigateCodeEventArgs(_selectedItem.Declaration);
         handler(this, arg);
     }
 }
Ejemplo n.º 5
0
 private void viewModel_Navigate(object sender, NavigateCodeEventArgs e)
 {
     var handler = Navigate;
     if (handler != null)
     {
         handler(this, e);
         Hide();
     }
 }
        public NavigateCodeEventArgs GetNavigationArgs()
        {
            if (_navigationArgs != null)
            {
                return(_navigationArgs);
            }

            _navigationArgs = new NavigateCodeEventArgs(QualifiedSelection);
            return(_navigationArgs);
        }
Ejemplo n.º 7
0
        private void viewModel_Navigate(object sender, NavigateCodeEventArgs e)
        {
            var handler = Navigate;

            if (handler != null)
            {
                handler(this, e);
                Hide();
            }
        }
        public void OnNavigate()
        {
            var handler = Navigate;

            if (handler != null && _selectedItem != null)
            {
                var arg = new NavigateCodeEventArgs(_selectedItem.Declaration);
                handler(this, arg);
            }
        }
Ejemplo n.º 9
0
 private void OnNavigateCodeIssue(object sender, NavigateCodeEventArgs e)
 {
     try
     {
         e.QualifiedName.Component.CodeModule.CodePane.SetSelection(e.Selection);
     }
     catch (COMException)
     {
     }
 }
Ejemplo n.º 10
0
 private void Control_NavigateCodeIssue(object sender, NavigateCodeEventArgs e)
 {
     try
     {
         if (e.QualifiedName.Component == null)
         {
             return;
         }
         e.QualifiedName.Component.CodeModule.CodePane.SetSelection(e.Selection);
     }
     catch (COMException)
     {
         // gulp
     }
 }
Ejemplo n.º 11
0
        private void OnNavigateCodeIssue(object sender, NavigateCodeEventArgs e)
        {
            try
            {
                var location = _vbe.FindInstruction(e.QualifiedName, e.Selection);
                location.CodeModule.CodePane.SetSelection(location.Selection);

                var codePane  = location.CodeModule.CodePane;
                var selection = location.Selection;
                codePane.SetSelection(selection.StartLine, selection.StartColumn, selection.EndLine, selection.EndColumn);
                codePane.ForceFocus();
                SetQuickFixTooltip();
            }
            catch (Exception exception)
            {
                Debug.Assert(false);
            }
        }
Ejemplo n.º 12
0
        private void ResultBox_DoubleClick(object sender, System.EventArgs e)
        {
            var handler = NavigateIdentifierReference;

            if (handler == null || ResultBox.SelectedItem == null)
            {
                return;
            }

            var selectedItem = ResultBox.SelectedItem as IdentifierReferenceListItem;

            if (selectedItem == null)
            {
                return;
            }

            var arg = new NavigateCodeEventArgs(selectedItem.GetReferenceItem());

            handler(this, arg);
        }
Ejemplo n.º 13
0
 private void viewModel_Navigate(object sender, NavigateCodeEventArgs e)
 {
     Navigate?.Invoke(this, e);
     Hide();
 }
Ejemplo n.º 14
0
 private void OnDialogNavigate(object sender, NavigateCodeEventArgs e)
 {
     _selected = e;
 }
 private void Control_NavigateCodeIssue(object sender, NavigateCodeEventArgs e)
 {
     try
     {
         if (e.QualifiedName.Component == null)
         {
             return;
         }
         e.QualifiedName.Component.CodeModule.CodePane.SetSelection(e.Selection);
     }
     catch (COMException)
     {
         // gulp
     }
 }
Ejemplo n.º 16
0
 public SearchResultItem(Declaration parentScopeDeclaration, NavigateCodeEventArgs navigationInfo, string resultText)
 {
     _navigateArgs = navigationInfo;
     _parentScopeDeclaration = parentScopeDeclaration;
     _resultText = resultText;
 }
 private void FindAllImplementationsForSelection(object sender, NavigateCodeEventArgs e)
 {
     var handler = FindAllImplementations;
     if (handler != null)
     {
         handler(sender, e);
     }
 }
Ejemplo n.º 18
0
 public SearchResultItem(Declaration parentScopeDeclaration, NavigateCodeEventArgs navigationInfo, string resultText)
 {
     _navigateArgs = navigationInfo;
     ParentScope   = parentScopeDeclaration;
     _resultText   = resultText;
 }
        private void OnNavigateCodeIssue(object sender, NavigateCodeEventArgs e)
        {
            try
            {
                var location = _vbe.FindInstruction(e.QualifiedName, e.Selection);
                location.CodeModule.CodePane.SetSelection(location.Selection);

                var codePane = location.CodeModule.CodePane;
                var selection = location.Selection;
                codePane.SetSelection(selection.StartLine, selection.StartColumn, selection.EndLine, selection.EndColumn);
                codePane.ForceFocus();
                SetQuickFixTooltip();
            }
            catch (Exception exception)
            {
                Debug.Assert(false);
            }
        }
Ejemplo n.º 20
0
 private void Control_NavigateIdentifierReference(object sender, NavigateCodeEventArgs e)
 {
     OnNavigateIdentifierReference(VBE, e.Reference);
 }
 private void FindAllReferencesForSelection(object sender, NavigateCodeEventArgs e)
 {
     var handler = FindAllReferences;
     if (handler != null)
     {
         handler(sender, e);
     }
 }