}
return null;
}
}
}
NearestResourcesDialog d;
if (menuObjective instanceof Recurso) {
d = new NearestResourcesDialog(
(Recurso) menuObjective, mapViewLocal);
} else if (menuObjective instanceof Incidencia) {
d = new NearestResourcesDialog(
(Incidencia) menuObjective,
mapViewLocal.getLatLon(mouseEvent.getX(),
mouseEvent.getY()), mapViewLocal);
} else {
d = new NearestResourcesDialog(
mapViewLocal.getLatLon(mouseEvent.getX(),
mouseEvent.getY()), mapViewLocal);
}
d.setVisible(true);
} else {
log.error("ActionCommand desconocido: "
+ e.getActionCommand());
}