@Override
public String getColumnText(Object obj, int i)
{
try{
EEvent evento=(EEvent) obj;
if(i==0)
//return NumberFormat.getInstance().format(evento.getNanosFromStart());
return format.format((double)evento.getNanosFromStart()/1000000000);
if(i==1)
//return NumberFormat.getInstance().format(evento.getNanosFromPrevious());
return format.format((double)evento.getNanosFromPrevious()/1000000000);
if(i==2)
{
if(evento instanceof EStackFrameLocatableEvent)
{
if(((EStackFrameLocatableEvent)evento).getStackFrame()!=null)
return ((EStackFrameLocatableEvent)evento).getStackFrame().getThread().getName();
else
return "Not stackframe available";
}
return "";
}
if(i==3)
{
if(evento instanceof EStackFrameLocatableEvent)
{
if(((EStackFrameLocatableEvent)evento).getStackFrame()!=null)
return ((EStackFrameLocatableEvent)evento).getStackFrame().getDepth() + "";
else
return "Not stackframe available";
}
return "";
}
if(i==4)
{if(evento instanceof EStackFrameLocatableEvent)
{
if(((EStackFrameLocatableEvent)evento).getStackFrame()!=null)
{
String ret=((EStackFrameLocatableEvent)evento).getStackFrame().getMethod().getDeclaringType().getName();
if(ret.contains("."))
return ret.substring(ret.lastIndexOf(".")+1);
return ret;
}
else
return "Not stackframe available";
}
return "";
}
if(i==5)
{if(evento instanceof EStackFrameLocatableEvent)
{
if(((EStackFrameLocatableEvent)evento).getStackFrame()!=null)
{
if(((EStackFrameLocatableEvent)evento).getStackFrame().getThisObject()!=null)
return ((EStackFrameLocatableEvent)evento).getStackFrame().getThisObject().getUniqueId() + "";
}
else
return "Not stackframe available";
}
return "";
}
if(i==6)
{if(evento instanceof EStackFrameLocatableEvent)
{
if(((EStackFrameLocatableEvent)evento).getStackFrame()!=null)
return ((EStackFrameLocatableEvent)evento).getStackFrame().getMethod().getName();
else
return "Not stackframe available";
}
return "";
}
if(i==7)
return evento.getClass().getSimpleName();
if(i==8)
{
if(evento instanceof EThreadStartEvent)
return ((EThreadStartEvent)evento).getHiloCreado().getName();
if(evento instanceof EThreadDeathEvent)