if (!events.hasNext()) {
return events;
}
if (events instanceof GridEventBrowser) {
GridEventBrowser gridEvents = (GridEventBrowser) events;
// The first event here will always be the parent
ILogEvent firstEvent = events.next();
ILogEvent lastEvent = firstEvent;
while (events.hasNext() && !(lastEvent instanceof BehaviorExitEvent)) {
lastEvent = events.next();
}
gridEvents.setBounds(firstEvent, lastEvent);
gridEvents.setNextEvent(firstEvent);
return gridEvents;
}
return null;
}