1 11 package org.eclipse.jface.text; 12 13 14 36 public interface ILineTracker { 37 38 43 String [] getLegalLineDelimiters(); 44 45 53 String getLineDelimiter(int line) throws BadLocationException; 54 55 61 int computeNumberOfLines(String text); 62 63 68 int getNumberOfLines(); 69 70 78 int getNumberOfLines(int offset, int length) throws BadLocationException; 79 80 87 int getLineOffset(int line) throws BadLocationException; 88 89 96 int getLineLength(int line) throws BadLocationException; 97 98 105 int getLineNumberOfOffset(int offset) throws BadLocationException; 106 107 116 IRegion getLineInformationOfOffset(int offset) throws BadLocationException; 117 118 127 IRegion getLineInformation(int line) throws BadLocationException; 128 129 137 void replace(int offset, int length, String text) throws BadLocationException; 138 139 144 void set(String text); 145 } 146 | Popular Tags |