Hi all,
I'm trying to develop a plug-in that could listen to the
BBoxSelectionCommand and get the bbox that have been drawn by the user with
the bbox tool.
I've tried to add a MapListener, I catch an event but it doesn't help:
activeMap.addMapListener(new IMapListener(){
public void changed(MapEvent event)
{
System.out.println("change");
if(event.getType() == MapEvent.MapEventType.MAP_COMMAND){
CommandManager val = (CommandManager)event.getNewValue();
Object old=event.getOldValue();
System.out.println(val.getMaxHistorySize());
}
}});
}
Thanks in advance for your help, I'm really lost here.
DESPRES Damien
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel