public DocumentEditInfo(AbstractDocument document, TextModificationType modificationType, int offset, int length)
 {
     editsByNode      = new Dictionary <ITextNode, IElementEdit>(IdentityComparator <ITextNode> .Instance);
     this.document    = document;
     ModificationType = modificationType;
     Offset           = offset;
     Length           = length;
 }
 public ElementEdit(
     AbstractDocument document,
     ITreePath <ITextNode> oldElementPath,
     ITreePath <ITextNode> newElementPath,
     int index,
     ITextNode[] addedNodes,
     ITextNode[] removedNodes) : base(false, "")
 {
     Index               = index;
     this.addedNodes     = addedNodes;
     this.removedNodes   = removedNodes;
     this.document       = document;
     this.oldElementPath = oldElementPath;
     this.newElementPath = newElementPath;
 }
 public RootFilterChain(AbstractDocument document)
 {
     this.document = document;
 }