//super.breakpointAdded(breakpoint);
Iterator<ReferenceType> handleriter = getVM().classesByName( "org.drools.core.base.mvel.MVELDebugHandler" ).iterator();
if ( !handleriter.hasNext() ) {
// Create class prepare request to add breakpoint after MVELDebugHanlder is loaded
ClassPrepareRequest req = getEventRequestManager().createClassPrepareRequest();
req.addClassFilter( "org.drools.core.base.mvel.MVELDebugHandler" );
req.setSuspendPolicy( EventRequest.SUSPEND_ALL );
addJDIEventListener(new IJDIEventListener() {
public boolean handleEvent(Event event, JDIDebugTarget target) {
addRemoteBreakpoint(d);
return true;
}
public void wonSuspendVote(Event event, JDIDebugTarget target) {
}
public void eventSetComplete(Event event, JDIDebugTarget target, boolean suspend, EventSet eventSet) {
wonSuspendVote(event, target);
}
public boolean handleEvent(Event event, JDIDebugTarget target, boolean suspendVote, EventSet eventSet) {
return handleEvent(event, target);
}
}, req);
req.enable();
return;
}
addRemoteBreakpoint( d );
} else {