com.pvx.ooadide.launchers.debug.breakpoints
Class PVXLineBreakpoint
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.model.Breakpoint
org.eclipse.debug.core.model.LineBreakpoint
com.pvx.ooadide.launchers.debug.breakpoints.PVXLineBreakpoint
- All Implemented Interfaces:
- IPVXEventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IBreakpoint, org.eclipse.debug.core.model.ILineBreakpoint
- Direct Known Subclasses:
- PVXRunToLineBreakpoint
public class PVXLineBreakpoint
- extends org.eclipse.debug.core.model.LineBreakpoint
- implements IPVXEventListener
PDA line breakpoint
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint |
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED |
Constructor Summary |
PVXLineBreakpoint()
Default constructor is required for the breakpoint manager
to re-create persisted breakpoints. |
PVXLineBreakpoint(org.eclipse.core.resources.IResource resource,
int lineNumber)
Constructs a line breakpoint on the given resource at the given
line number. |
Methods inherited from class org.eclipse.debug.core.model.LineBreakpoint |
getCharEnd, getCharStart, getLineNumber |
Methods inherited from class org.eclipse.debug.core.model.Breakpoint |
delete, equals, getMarker, hashCode, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IBreakpoint |
delete, getMarker, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
PVXLineBreakpoint
public PVXLineBreakpoint()
- Default constructor is required for the breakpoint manager
to re-create persisted breakpoints. After instantiating a breakpoint,
the
setMarker(...)
method is called to restore
this breakpoint's attributes.
PVXLineBreakpoint
public PVXLineBreakpoint(org.eclipse.core.resources.IResource resource,
int lineNumber)
throws org.eclipse.core.runtime.CoreException
- Constructs a line breakpoint on the given resource at the given
line number. The line number is 1-based (i.e. the first line of a
file is line number 1). The PDA VM uses 0-based line numbers,
so this line number translation is done at breakpoint install time.
- Parameters:
resource
- file on which to set the breakpointlineNumber
- 1-based line number of the breakpoint
- Throws:
org.eclipse.core.runtime.CoreException
- if unable to create the breakpoint
getModelIdentifier
public java.lang.String getModelIdentifier()
- Specified by:
getModelIdentifier
in interface org.eclipse.debug.core.model.IBreakpoint
isRunToLineBreakpoint
public boolean isRunToLineBreakpoint()
- Returns whether this breakpoint is a run-to-line breakpoint
- Returns:
- whether this breakpoint is a run-to-line breakpoint
install
public void install(PVXDebugTarget target)
throws org.eclipse.core.runtime.CoreException
- Installs this breakpoint in the given interprettor.
Registeres this breakpoint as an event listener in the
given target and creates the breakpoint specific request.
- Parameters:
target
- PDA interprettor
- Throws:
org.eclipse.core.runtime.CoreException
- if installation fails
remove
public void remove(PVXDebugTarget target)
throws org.eclipse.core.runtime.CoreException
- Removes this breakpoint from the given interprettor.
Removes this breakpoint as an event listener and clears
the request for the interprettor.
- Parameters:
target
- PDA interprettor
- Throws:
org.eclipse.core.runtime.CoreException
- if removal fails
handleEvent
public void handleEvent(java.lang.String event)
- Description copied from interface:
IPVXEventListener
- Notification the given event occurred in the target program
being interpretted.
- Specified by:
handleEvent
in interface IPVXEventListener
- Parameters:
event
- the event