|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.runtime.PlatformObject | +--org.eclipse.debug.core.model.Breakpoint
Abstract implementation of a breakpoint. This class is intended to be subclassed by implementations of breakpoints.
IBreakpoint
Field Summary |
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint |
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED |
Constructor Summary | |
Breakpoint()
|
Method Summary | |
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. |
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 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. |
Methods inherited from class org.eclipse.core.runtime.PlatformObject |
getAdapter |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IBreakpoint |
getModelIdentifier |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Constructor Detail |
public Breakpoint()
Method Detail |
public void setMarker(IMarker marker) throws CoreException
IBreakpoint
setMarker
in interface IBreakpoint
marker
- the marker to associate with this breakpoint
CoreException
- if an error occurs accessing the markerIBreakpoint.setMarker(IMarker)
public boolean equals(Object item)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public void setEnabled(boolean enabled) throws CoreException
IBreakpoint
setEnabled
in interface IBreakpoint
enabled
- whether this breakpoint should be enabled
CoreException
- if unable to set the associated attribute on
this breakpoint's underlying marker.IBreakpoint.setEnabled(boolean)
public boolean isEnabled() throws CoreException
IBreakpoint
isEnabled
in interface IBreakpoint
CoreException
- if unable to access the associated
attribute from this breakpoint's underlying markerIBreakpoint.isEnabled()
public boolean isRegistered() throws CoreException
IBreakpoint
isRegistered
in interface IBreakpoint
CoreException
- if unable to access the associated
attribute on this breakpoint's underlying markerIBreakpoint.isRegistered()
public void setRegistered(boolean registered) throws CoreException
IBreakpoint
setRegistered
in interface IBreakpoint
registered
- whether this breakpoint is registered with the
breakpoint manager
CoreException
- if unable to set the associated attribute
on this breakpoint's underlying marker.IBreakpoint.setRegistered(boolean)
public void delete() throws CoreException
IBreakpoint
delete
in interface IBreakpoint
CoreException
- if unable to delete this breakpoint's
underlying markerIBreakpoint.delete()
public IMarker getMarker()
IBreakpoint
null
if no marker is associated with this breakpoint.
getMarker
in interface IBreakpoint
null
if there is
no associated marker.IBreakpoint.getMarker()
public boolean isPersisted() throws CoreException
IBreakpoint
isPersisted
in interface IBreakpoint
CoreException
- if unable to access the associated attribute
on this breakpoint's underlying markerIBreakpoint.isPersisted()
public void setPersisted(boolean persisted) throws CoreException
IBreakpoint
setPersisted
in interface IBreakpoint
CoreException
- 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 value
CoreException
- is setting the attribute failsIMarker.setAttribute(java.lang.String, boolean)
protected void setAttribute(String attributeName, int value) throws CoreException
attributeName
- attribute namevalue
- attribute value
CoreException
- is setting the attribute failsIMarker.setAttribute(java.lang.String, int)
protected void setAttribute(String attributeName, Object value) throws CoreException
attributeName
- attribute namevalue
- attribute value
CoreException
- 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 values
CoreException
- is setting the attributes failsIMarker.setAttributes(java.lang.String[], java.lang.Object[])
protected void setAttributes(Map attributes) throws CoreException
attributes
- attribute map
CoreException
- 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 exist
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |