numStartTags++;
switch (data[i].getDirection()) { case ElementSpec.JoinFractureDirection: insertFracture(data[i]); break; case ElementSpec.JoinNextDirection: int index = paragraph.getElementIndex(offset); elementStack.push(paragraph.getElement(index)); break; case ElementSpec.OriginateDirection: Element current = (Element) elementStack.peek(); Element newParagraph = insertParagraph((BranchElement) current, offset); elementStack.push(newParagraph); break; default: break; }
    protected void insertUpdate(ElementSpec[] data)    {      for (int i = 0; i < data.length; i++)        {          switch (data[i].getType())            {            case ElementSpec.StartTagType:              numStartTags++;              break;            case ElementSpec.EndTagType:              numEndTags++;              break;            default:              insertContentTag(data[i]);              break;            }        }      endEdit();    }