Collections.reverse(stack);
stackTrace.setInput(stack);
*/
ExtraEntityQuerier querier = new ExtraEntityQuerier();
EStackFrameLocatableEvent entryEvent = null;
ArrayList<Object> stack=new ArrayList<Object>();
EStackFrameLocation frameLocation=eEvent.getStackFrameLocation();
//agregar ultimo evento
stack.add(eEvent);
//si baja en el stack trace seguir con el stack anterior
if(eEvent instanceof EMethodEntryEvent || eEvent instanceof ENewObjectEvent)
frameLocation=frameLocation.getStackFrame().getPreviousStackFrameLocation();
else
{
entryEvent = querier.getStackFrameEntryEvent(frameLocation.getStackFrame());
if(entryEvent == null)
stack.add(frameLocation);
else
stack.add(entryEvent);
frameLocation=frameLocation.getStackFrame().getPreviousStackFrameLocation();
}
while(frameLocation!=null)
{
entryEvent = querier.getStackFrameEntryEvent(frameLocation.getStackFrame());
if(entryEvent == null)
stack.add(frameLocation);
else
{
stack.add(new Object[]{frameLocation, entryEvent});