for (int i = 0; i < events.length; i++) { if (events[i].getKind() == DebugEvent.SUSPEND) { int detail = events[i].getDetail(); if (detail == DebugEvent.BREAKPOINT || detail == DebugEvent.STEP_END) handleSuspend(events[i]);
try { for (int i = 0; i < events.length; i++) { int kind = events[i].getKind(); if (kind == DebugEvent.SUSPEND) { int detail = events[i].getDetail(); if (detail == DebugEvent.BREAKPOINT || detail == DebugEvent.STEP_END) handleSuspend(events[i]); } else if (kind == DebugEvent.TERMINATE && events[i].getSource() instanceof IDebugTarget) {  Iterator iter; IJavaMethodBreakpoint b; for (int j = 0; j < 4; j++) { iter = allBreakpoints[j].iterator(); while (iter.hasNext()) { b = (IJavaMethodBreakpoint) iter.next(); if (b.getMarker().getAttribute(StreamItLauncherPlugin.RESUME, true)) b.setEntry(false); } } }
	public void handleDebugEvents(DebugEvent[] events) {		for (int i = 0; i < events.length; i++) {			if (events[i].getKind() == DebugEvent.SUSPEND) {				int detail = events[i].getDetail();				if (detail == DebugEvent.BREAKPOINT || detail == DebugEvent.STEP_END) handleSuspend(events[i]);			}		}	}