internal void OnUserAction(UserAction userAction, ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor) { if (OpenAndSelectHandler == null) { return; } if ((userAction != m_lastUserAction) || (syntaxEditor != m_lastUserActionEditor)) { m_lastUserAction = userAction; m_lastUserActionEditor = syntaxEditor; StoreCurrentPosition(); } string path = syntaxEditor.Document.Filename; ISyntaxEditorTextRange position = new SyntaxEditorTextRange(syntaxEditor.SelectedView.Selection.TextRange); SetCurrentPosition(() => OpenAndSelectHandler(path, position)); }
internal void OnUserAction(UserAction userAction, ActiproSoftware.SyntaxEditor.SyntaxEditor syntaxEditor) { if (OpenAndSelectHandler == null) return; if ((userAction != m_lastUserAction) || (syntaxEditor != m_lastUserActionEditor)) { m_lastUserAction = userAction; m_lastUserActionEditor = syntaxEditor; StoreCurrentPosition(); } string path = syntaxEditor.Document.Filename; ISyntaxEditorTextRange position = new SyntaxEditorTextRange(syntaxEditor.SelectedView.Selection.TextRange); SetCurrentPosition(() => OpenAndSelectHandler(path, position)); }