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);
     }
 }
Ejemplo n.º 2
0
 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);
 }