private void OnViewerEditorCaretPositionChanged(object sender, EventArgs e) { if (m_AppSettings.SynchronizeCursorPositions) { MainGherkinEditor.ScrollCursorTo(ViewerEditor.TextArea.Caret.Offset, focus: false); SubGherkinEditor.ScrollCursorTo(ViewerEditor.TextArea.Caret.Offset, focus: false); } }
public void InstallFoldingManager(string filePath) { if (HasFoldingStrategy(filePath)) { MainGherkinEditor.InstallFoldingManager(); SubGherkinEditor.InstallFoldingManager(); ViewerGherkinEditor.InstallFoldingManager(); CreateFoldingStrategy(filePath); } else { MainGherkinEditor.UnnstallFoldingManager(); SubGherkinEditor.UnnstallFoldingManager(); ViewerGherkinEditor.UnnstallFoldingManager(); GherkinFoldingStrategy = null; XmlFoldingStrategy = null; } }
public void ScrollCursorTo(int line, int column) { MainGherkinEditor.ScrollCursorTo(line, column); }