public void findAndUndo(Object someObj){
  if (someObj == getInformationDelegator()) {
    if (dtmm != null && dtmm.getInfoDelegator() == (InformationDelegator)someObj) {
      dtmm.setInfoDelegator(null);
    }
    setInformationDelegator(null);
  }
  if (someObj == getMouseDelegator()) {
    setMouseDelegator(null);
  }
  if (someObj == getCanvas()) {
    setCanvas(null);
  }
  if (someObj instanceof EditToolLoader) {
    removeLoader((EditToolLoader)someObj);
  }
}

public void findAndUndo ( Object someObj ) { if ( someObj == getInformationDelegator ( ) ) { if ( dtmm != null && dtmm . getInfoDelegator ( ) == ( InformationDelegator ) someObj ) { dtmm . setInfoDelegator ( null ) ; } setInformationDelegator ( null ) ; } if ( someObj == getMouseDelegator ( ) ) { setMouseDelegator ( null ) ; } if ( someObj == getCanvas ( ) ) { setCanvas ( null ) ; } if ( someObj instanceof EditToolLoader ) { removeLoader ( ( EditToolLoader ) someObj ) ; } }
called by childrenremoved , it provides a good method for handling any object you may want to take away from the omdrawingtool . the omdrawingtool figures out if it should disconnect itseld from the object .
