1 11 package org.eclipse.jdi.internal.event; 12 13 14 import java.io.DataInputStream ; 15 import java.io.IOException ; 16 17 import org.eclipse.jdi.internal.MirrorImpl; 18 import org.eclipse.jdi.internal.ThreadReferenceImpl; 19 import org.eclipse.jdi.internal.VirtualMachineImpl; 20 import org.eclipse.jdi.internal.request.RequestID; 21 22 import com.sun.jdi.event.BreakpointEvent; 23 24 30 public class BreakpointEventImpl extends LocatableEventImpl implements BreakpointEvent { 31 32 public static final byte EVENT_KIND = EVENT_BREAKPOINT; 33 34 37 private BreakpointEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { 38 super("BreakpointEvent", vmImpl, requestID); } 40 41 44 public static BreakpointEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { 45 VirtualMachineImpl vmImpl = target.virtualMachineImpl(); 46 BreakpointEventImpl event = new BreakpointEventImpl(vmImpl, requestID); 47 event.readThreadAndLocation(target,dataInStream); 48 ((ThreadReferenceImpl)event.thread()).setIsAtBreakpoint(); 49 return event; 50 } 51 } 52 | Popular Tags |