public void totalReset(){
  if (wantsEvents()) {
    setWantsEvents(false);
    if (unpickBtn != null) {
      unpickBtn.doClick();
    }
    if (mouseDelegator != null) {
      MapMouseMode[] modes=mouseDelegator.getMouseModes();
      if (modes != null && modes.length > 0)       mouseDelegator.setActiveMouseMode(modes[0]);
    }
  }
}

public void totalReset ( ) { if ( wantsEvents ( ) ) { setWantsEvents ( false ) ; if ( unpickBtn != null ) { unpickBtn . doClick ( ) ; } if ( mouseDelegator != null ) { MapMouseMode [ ] modes = mouseDelegator . getMouseModes ( ) ; if ( modes != null && modes . length > 0 ) mouseDelegator . setActiveMouseMode ( modes [ 0 ] ) ; } } }
does everything to make the drawingeditortool go to sleep , and disable all buttons .
