1 11 package org.eclipse.ui.internal.console; 12 13 import org.eclipse.jface.text.BadLocationException; 14 import org.eclipse.jface.text.BadPositionCategoryException; 15 import org.eclipse.jface.text.Document; 16 import org.eclipse.jface.text.IRegion; 17 import org.eclipse.jface.text.Position; 18 19 22 public class ConsoleDocument extends Document { 23 24 27 public synchronized String get(int pos, int length) throws BadLocationException { 28 return super.get(pos, length); 29 } 30 33 public synchronized int getLength() { 34 return super.getLength(); 35 } 36 39 public synchronized String getLineDelimiter(int line) throws BadLocationException { 40 return super.getLineDelimiter(line); 41 } 42 45 public synchronized IRegion getLineInformation(int line) throws BadLocationException { 46 return super.getLineInformation(line); 47 } 48 51 public synchronized IRegion getLineInformationOfOffset(int offset) throws BadLocationException { 52 return super.getLineInformationOfOffset(offset); 53 } 54 57 public synchronized int getLineLength(int line) throws BadLocationException { 58 return super.getLineLength(line); 59 } 60 63 public synchronized int getLineOffset(int line) throws BadLocationException { 64 return super.getLineOffset(line); 65 } 66 69 public int getLineOfOffset(int pos) throws BadLocationException { 70 return super.getLineOfOffset(pos); 71 } 72 75 public synchronized int getNumberOfLines() { 76 return super.getNumberOfLines(); 77 } 78 81 public synchronized void replace(int pos, int length, String text) throws BadLocationException { 82 super.replace(pos, length, text); 83 } 84 87 public synchronized void set(String text) { 88 super.set(text); 89 } 90 93 protected void completeInitialization() { 94 super.completeInitialization(); 95 addPositionUpdater(new HyperlinkUpdater()); 96 } 97 100 public synchronized void addPosition(String category, Position position) throws BadLocationException, BadPositionCategoryException { 101 super.addPosition(category, position); 102 } 103 106 public synchronized void removePosition(String category, Position position) throws BadPositionCategoryException { 107 super.removePosition(category, position); 108 } 109 112 public synchronized Position[] getPositions(String category) throws BadPositionCategoryException { 113 return super.getPositions(category); 114 } 115 } 116 | Popular Tags |