|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | 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
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 boolean |
markerExists()
Returns whether this breakpoint has an associated marker that exists. |
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
IBreakpoint.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
IBreakpoint.setEnabled(boolean)
public boolean isEnabled() throws CoreException
IBreakpoint
isEnabled
in interface IBreakpoint
IBreakpoint.isEnabled()
public boolean isRegistered() throws CoreException
IBreakpoint
isRegistered
in interface IBreakpoint
IBreakpoint.isRegistered()
public void setRegistered(boolean registered) throws CoreException
IBreakpoint
setRegistered
in interface IBreakpoint
IBreakpoint.setRegistered(boolean)
public void delete() throws CoreException
IBreakpoint
delete
in interface IBreakpoint
IBreakpoint.delete()
public IMarker getMarker()
IBreakpoint
null
if no marker is associated with this breakpoint.getMarker
in interface IBreakpoint
IBreakpoint.getMarker()
public boolean isPersisted() throws CoreException
IBreakpoint
isPersisted
in interface IBreakpoint
IBreakpoint.isPersisted()
public void setPersisted(boolean persisted) throws CoreException
IBreakpoint
TRANSIENT
attribute on this
breakpoint's marker to true
.setPersisted
in interface IBreakpoint
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()
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |