else if(event instanceof BreakpointEvent)
{
//System.out.println("\t\t" + event);//////////////////////
//printStackTrace(((BreakpointEvent) event).thread());
BreakpointEvent be=(BreakpointEvent) event;
/*
if((Boolean) be.request().getProperty("START"))
{
if(!be.location().method().isConstructor())
{
generatedEvents.add(dataManager.createMethodEntryEvent(be));
}
else
{
generatedEvents.add(dataManager.createNewObjectEvent(be));
}
}
*/
/*if(vm.eventRequestManager().methodEntryRequests().size()==0)
{
MethodEntryRequest mer = vm.eventRequestManager().createMethodEntryRequest();
mer.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
mer.addThreadFilter(be.thread());
MethodExitRequest mxr = vm.eventRequestManager().createMethodExitRequest();
mxr.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
mxr.addThreadFilter(be.thread());
}
habilitarMethodEvents=true;
System.out.println("\t\t\t" + "solicitar eventos metodos: " + habilitarMethodEvents);//////////////////////
*/
// //generar evento
EEvent eEvent=null;
if(!be.location().method().isConstructor())
{
generatedEvents.add(eEvent=dataManager.createMethodEntryEvent(be));
}
else
{
generatedEvents.add(eEvent=dataManager.createNewObjectEvent(be));
}
{
//crea method entry para desactivar method exit cuando empiece a bajar en el stack trace
MethodEntryRequest mer = vm.eventRequestManager().createMethodEntryRequest();
mer.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
mer.addThreadFilter(be.thread());
mer.putProperty("eEvent", eEvent);
mer.setEnabled(true);
//crea method exit para cuando salga de este stacktrace
MethodExitRequest mxr = vm.eventRequestManager().createMethodExitRequest();
mxr.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
mxr.addThreadFilter(be.thread());
mxr.putProperty("eEvent", eEvent);
mxr.setEnabled(true);
//System.out.println("\t\t\teventID: " + eEvent.getId());
}
//