public static void DefinitionByMouseClickManager_TextAreaMouseDown(object sender, EventArgs e)
        {
            TextArea textArea = (TextArea)sender;

            if (Control.ModifierKeys == Keys.Control && textArea.SelectionManager.SelectionCollection.Count == 0)
            {
                gotoInProgress = true;
                if (CodeCompletionActionsManager.CanGoToRealization(textArea))
                {
                    CodeCompletionActionsManager.GotoRealization(textArea);
                }
                else if (CodeCompletionActionsManager.CanGoTo(textArea))
                {
                    CodeCompletionActionsManager.GotoDefinition(textArea);
                }
                gotoInProgress = false;
            }
        }
Exemplo n.º 2
0
 public override void Execute(TextArea textArea)
 {
     CodeCompletionActionsManager.GotoDefinition(textArea);
 }
Exemplo n.º 3
0
 private void GotoDefinitionClicked(object sender, EventArgs args)
 {
     //GotoAction ga = new GotoAction();
     CodeCompletionActionsManager.GotoDefinition(CurrentCodeFileDocument.TextEditor.ActiveTextAreaControl.TextArea);
 }