Search in sources :

Example 1 with FoldManager

use of org.fife.ui.rsyntaxtextarea.folding.FoldManager in project knime-core by knime.

the class JavaSnippetNodeDialog method collapseAllFolds.

/* Collapse all folds */
private void collapseAllFolds() {
    final FoldManager foldManager = m_snippetTextArea.getFoldManager();
    final int foldCount = foldManager.getFoldCount();
    for (int i = 0; i < foldCount; i++) {
        final Fold fold = foldManager.getFold(i);
        fold.setCollapsed(true);
    }
}
Also used : Fold(org.fife.ui.rsyntaxtextarea.folding.Fold) FoldManager(org.fife.ui.rsyntaxtextarea.folding.FoldManager)

Aggregations

Fold (org.fife.ui.rsyntaxtextarea.folding.Fold)1 FoldManager (org.fife.ui.rsyntaxtextarea.folding.FoldManager)1