code: public void clear() {
  
          m_undo.clear();
          m_redo.clear();
          m_entity = null;
          m_editor = null;
          m_rootHandler = null;
      }
docs: Clears the undo/redo stacks and all references.<p>