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