if (shouldFire)
  public void remove(int offset, int length) throws BadLocationException  {    DefaultDocumentEvent event =      new DefaultDocumentEvent(offset, length,			       DocumentEvent.EventType.REMOVE);        removeUpdate(event);    boolean shouldFire = content.getString(offset, length).length() != 0;        writeLock();    UndoableEdit temp = content.remove(offset, length);    writeUnlock();        postRemoveUpdate(event);        if (shouldFire)    fireRemoveUpdate(event);  }