1 11 12 package org.eclipse.jface.text; 13 14 15 20 public class MarkSelection implements IMarkSelection { 21 22 23 private final IDocument fDocument; 24 25 private final int fOffset; 26 27 private final int fLength; 28 29 36 public MarkSelection(IDocument document, int offset, int length) { 37 fDocument= document; 38 fOffset= offset; 39 fLength= length; 40 } 41 42 45 public IDocument getDocument() { 46 return fDocument; 47 } 48 49 52 public int getOffset() { 53 return fOffset; 54 } 55 56 59 public int getLength() { 60 return fLength; 61 } 62 63 66 public boolean isEmpty() { 67 return fLength == 0; 68 } 69 70 } 71 | Popular Tags |