}
});
_dialog.show();
Context context = new ContextImpl();
if (!_stopsById.isEmpty()) {
CoordinateBounds b = new CoordinateBounds();
for (StopBean stop : _stopsById.values())
b.addPoint(stop.getLat(), stop.getLon());
b = SphericalGeometryLibrary.bounds(b, 100);
context = stopFinder.getCoordinateBoundsAsContext(b);
System.out.println("context=" + context);
}
final Context c = context;
DeferredCommand.addCommand(new Command() {
@Override
public void execute() {
stopFinder.onContextChanged(c);