1 11 package org.eclipse.pde.internal.ui.model; 12 13 public class DocumentTextNode implements IDocumentTextNode { 14 private int fOffset = -1; 15 private int fLength = 0; 16 private IDocumentNode fEnclosingElement; 17 private String fText; 18 19 22 public void setEnclosingElement(IDocumentNode node) { 23 fEnclosingElement = node; 24 } 25 28 public IDocumentNode getEnclosingElement() { 29 return fEnclosingElement; 30 } 31 34 public void setText(String text) { 35 fText = text; 36 } 37 40 public String getText() { 41 return fText == null ? "" : fText; } 43 46 public void setOffset(int offset) { 47 fOffset = offset; 48 } 49 52 public int getOffset() { 53 return fOffset; 54 } 55 56 59 public int getLength() { 60 return fLength; 61 } 62 63 66 public void setLength(int length) { 67 fLength = length; 68 } 69 70 } 71 | Popular Tags |