}
public void update(Observable o, Object arg) {
InfoMessage message = this.cmd.getMessage();
// listen to the map change notification so it can broadcast the set
// enable=false to all his children's.
if (!(arg instanceof GeoreferencingCommandEventChange))
return;
GeoreferencingCommandEventChange cmdEvent = (GeoreferencingCommandEventChange) arg;
switch (cmdEvent.getEvent()) {
case MAP_CHANGE:
message.setType(Type.WARNING);
setEnabled(false);
break;
case MAP_CHANGE_TO_ORIGINAL:
message.setType(Type.INFORMATION);
setEnabled(true);
default:
break;
}