public abstract class Breakpoint extends PlatformObject implements IBreakpoint
IBreakpointBREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED| Constructor and Description |
|---|
Breakpoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes this breakpoint's underlying marker, and removes
this breakpoint from the breakpoint manager.
|
protected IMarker |
ensureMarker()
Returns the marker associated with this breakpoint.
|
boolean |
equals(Object item) |
IMarker |
getMarker()
Returns the marker associated with this breakpoint, or
null if no marker is associated with this breakpoint. |
protected ISchedulingRule |
getMarkerRule()
Returns a scheduling rule to use when modifying or deleting this breakpoint's marker,
possibly
null. |
protected ISchedulingRule |
getMarkerRule(IResource resource)
Returns a scheduling rule to use when modifying markers on the given resource,
possibly
null. |
int |
hashCode() |
boolean |
isEnabled()
Returns whether this breakpoint is enabled
|
boolean |
isPersisted()
Returns whether this breakpoint is to be persisted across
workspace invocations, or when a project is closed and re-opened.
|
boolean |
isRegistered()
Returns whether this breakpoint is currently registered with
the breakpoint manager.
|
protected boolean |
markerExists()
Returns whether this breakpoint has an associated marker that exists.
|
protected void |
run(ISchedulingRule rule,
IWorkspaceRunnable wr)
Execute the given workspace runnable with the scheduling rule to use when running the operation.
|
protected void |
setAttribute(String attributeName,
boolean value)
Convenience method to set the given boolean attribute of
this breakpoint's underlying marker in a workspace
runnable.
|
protected void |
setAttribute(String attributeName,
int value)
Convenience method to set the given integer attribute of
this breakpoint's underlying marker in a workspace
runnable.
|
protected void |
setAttribute(String attributeName,
Object value)
Convenience method to set the given attribute of
this breakpoint's underlying marker in a workspace
runnable.
|
protected void |
setAttributes(Map attributes)
Convenience method to set the attributes of
this breakpoint's underlying marker in a workspace
runnable.
|
protected void |
setAttributes(String[] attributeNames,
Object[] values)
Convenience method to set the given attributes of
this breakpoint's underlying marker in a workspace
runnable.
|
void |
setEnabled(boolean enabled)
Sets the enabled state of this breakpoint.
|
void |
setMarker(IMarker marker)
Sets the marker associated with this breakpoint.
|
void |
setPersisted(boolean persisted)
Sets whether this breakpoint is to be persisted across
workspace invocations, or when a project is closed and re-opened.
|
void |
setRegistered(boolean registered)
Sets whether this breakpoint is currently registered with the
breakpoint manager.
|
getAdapterclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetModelIdentifiergetAdapterpublic void setMarker(IMarker marker) throws CoreException
IBreakpointsetMarker in interface IBreakpointmarker - the marker to associate with this breakpointCoreException - if an error occurs accessing the markerIBreakpoint.setMarker(IMarker)public boolean equals(Object item)
equals in class ObjectObject.equals(Object)public int hashCode()
hashCode in class ObjectObject.hashCode()public void setEnabled(boolean enabled)
throws CoreException
IBreakpointsetEnabled in interface IBreakpointenabled - whether this breakpoint should be enabledCoreException - if unable to set the associated attribute on
this breakpoint's underlying marker.IBreakpoint.setEnabled(boolean)public boolean isEnabled()
throws CoreException
IBreakpointisEnabled in interface IBreakpointCoreException - if unable to access the associated
attribute from this breakpoint's underlying markerIBreakpoint.isEnabled()public boolean isRegistered()
throws CoreException
IBreakpointisRegistered in interface IBreakpointCoreException - if unable to access the associated
attribute on this breakpoint's underlying markerIBreakpoint.isRegistered()public void setRegistered(boolean registered)
throws CoreException
IBreakpointsetRegistered in interface IBreakpointregistered - whether this breakpoint is registered with the
breakpoint managerCoreException - if unable to set the associated attribute
on this breakpoint's underlying marker.IBreakpoint.setRegistered(boolean)public void delete()
throws CoreException
IBreakpointdelete in interface IBreakpointCoreException - if unable to delete this breakpoint's
underlying markerIBreakpoint.delete()public IMarker getMarker()
IBreakpointnull if no marker is associated with this breakpoint.getMarker in interface IBreakpointnull if there is
no associated marker.IBreakpoint.getMarker()public boolean isPersisted()
throws CoreException
IBreakpointisPersisted in interface IBreakpointCoreException - if unable to access the associated attribute
on this breakpoint's underlying markerIBreakpoint.isPersisted()public void setPersisted(boolean persisted)
throws CoreException
IBreakpointTRANSIENT attribute on this
breakpoint's marker to true.setPersisted in interface IBreakpointpersisted - whether this breakpoint is to be persisted across
workspace invocationsCoreException - if unable to set the associated attribute on
this breakpoint's underlying marker.IBreakpoint.setPersisted(boolean)protected void setAttribute(String attributeName, boolean value) throws CoreException
attributeName - attribute namevalue - attribute valueCoreException - is setting the attribute failsIMarker.setAttribute(java.lang.String, boolean)protected void setAttribute(String attributeName, int value) throws CoreException
attributeName - attribute namevalue - attribute valueCoreException - is setting the attribute failsIMarker.setAttribute(java.lang.String, int)protected void setAttribute(String attributeName, Object value) throws CoreException
attributeName - attribute namevalue - attribute valueCoreException - is setting the attribute failsIMarker.setAttribute(java.lang.String, java.lang.Object)protected void setAttributes(String[] attributeNames, Object[] values) throws CoreException
attributeNames - attribute namesvalues - attribute valuesCoreException - is setting the attributes failsIMarker.setAttributes(java.lang.String[], java.lang.Object[])protected void setAttributes(Map attributes) throws CoreException
attributes - attribute mapCoreException - is setting the attributes failsIMarker.setAttributes(java.util.Map)protected IMarker ensureMarker() throws DebugException
DebugException - if no marker is associated with
this breakpoint or the associated marker does not existprotected boolean markerExists()
protected ISchedulingRule getMarkerRule(IResource resource)
null.resource - a resource on which a marker will be created, modified, or deletednullprotected ISchedulingRule getMarkerRule()
null. This method is only valid when this breakpoint's
marker has already been created. When creating a marker on a specific resource,
use getMarkerRule(IResource) instead.protected void run(ISchedulingRule rule, IWorkspaceRunnable wr) throws DebugException
rule - the rule to use when running the operationwr - the runnable operationDebugException - If a core exception occurs performing the operationGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.