1 11 package org.eclipse.text.edits; 12 13 import org.eclipse.jface.text.BadLocationException; 14 import org.eclipse.jface.text.IDocument; 15 16 22 public final class RangeMarker extends TextEdit { 23 24 30 public RangeMarker(int offset, int length) { 31 super(offset, length); 32 } 33 34 37 private RangeMarker(RangeMarker other) { 38 super(other); 39 } 40 41 44 protected TextEdit doCopy() { 45 return new RangeMarker(this); 46 } 47 48 51 protected void accept0(TextEditVisitor visitor) { 52 boolean visitChildren= visitor.visit(this); 53 if (visitChildren) { 54 acceptChildren(visitor); 55 } 56 } 57 58 61 int performDocumentUpdating(IDocument document) throws BadLocationException { 62 fDelta= 0; 63 return fDelta; 64 } 65 66 69 boolean deleteChildren() { 70 return false; 71 } 72 } 73 | Popular Tags |