1 19 package org.netbeans.api.gsf; 20 21 import java.util.List ; 22 import javax.swing.text.BadLocationException ; 23 import javax.swing.text.Caret ; 24 import javax.swing.text.Document ; 25 import org.netbeans.api.gsf.OffsetRange; 26 import org.netbeans.api.gsf.annotations.NonNull; 27 28 29 37 public interface BracketCompletion { 38 52 boolean beforeCharInserted(Document doc, int caretOffset, Caret caret, char ch) 53 throws BadLocationException ; 54 55 56 boolean afterCharInserted(Document doc, int caretOffset, Caret caret, char ch) 57 throws BadLocationException ; 58 59 68 69 70 public boolean charBackspaced(Document doc, int caretOffset, Caret caret, char ch) 71 throws BadLocationException ; 72 73 82 int beforeBreak(Document doc, int caretOffset, Caret caret) 83 throws BadLocationException ; 84 85 89 @NonNull 90 OffsetRange findMatching(Document doc, int caretOffset); 91 92 96 @NonNull 97 List <OffsetRange> findLogicalRanges(CompilationInfo info, int caretOffset); 98 } 99 | Popular Tags |