Search in sources :

Example 6 with BaseDocument

use of org.netbeans.editor.BaseDocument in project enclojure by EricThorsen.

the class ClojureFoldManager method initFolds.

public void initFolds(FoldHierarchyTransaction tran) {
    Document doc = getOperation().getHierarchy().getComponent().getDocument();
    if (doc instanceof BaseDocument) {
        this.document = (BaseDocument) doc;
    }
    updateFolds(document, tran);
}
Also used : BaseDocument(org.netbeans.editor.BaseDocument) BaseDocument(org.netbeans.editor.BaseDocument) Document(javax.swing.text.Document)

Aggregations

BaseDocument (org.netbeans.editor.BaseDocument)6 AbstractDocument (javax.swing.text.AbstractDocument)2 BadLocationException (javax.swing.text.BadLocationException)2 Caret (javax.swing.text.Caret)2 TokenId (org.netbeans.api.lexer.TokenId)2 OffsetRange (blue.ui.editor.support.OffsetRange)1 Component (java.awt.Component)1 JScrollPane (javax.swing.JScrollPane)1 Document (javax.swing.text.Document)1 EditorKit (javax.swing.text.EditorKit)1 NbDocument (org.openide.text.NbDocument)1