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;
            }
        }
示例#2
0
 public override void Execute(TextArea textArea)
 {
     CodeCompletionActionsManager.GotoDefinition(textArea);
 }
示例#3
0
 private void GotoDefinitionClicked(object sender, EventArgs args)
 {
     //GotoAction ga = new GotoAction();
     CodeCompletionActionsManager.GotoDefinition(CurrentCodeFileDocument.TextEditor.ActiveTextAreaControl.TextArea);
 }