|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.model.Breakpoint
org.eclipse.cdt.debug.internal.core.breakpoints.CBreakpoint
public abstract class CBreakpoint
The base class for all C/C++ specific breakpoints.
Field Summary |
---|
Fields inherited from interface org.eclipse.cdt.debug.core.model.ICBreakpoint |
---|
CONDITION, IGNORE_COUNT, INSTALL_COUNT, MODULE, SOURCE_HANDLE, THREAD_ID |
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint |
---|
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED |
Constructor Summary | |
---|---|
CBreakpoint()
Constructor for CBreakpoint. |
|
CBreakpoint(org.eclipse.core.resources.IResource resource,
java.lang.String markerType,
java.util.Map attributes,
boolean add)
Constructor for CBreakpoint. |
Method Summary | |
---|---|
void |
createMarker(org.eclipse.core.resources.IResource resource,
java.lang.String markerType,
java.util.Map attributes,
boolean add)
|
int |
decrementInstallCount()
Decrements the install count of this breakpoint. |
void |
fireChanged()
Change notification when there are no marker changes. |
java.lang.String |
getCondition()
Returns the conditional expression associated with this breakpoint. |
int |
getIgnoreCount()
Returns the ignore count used by this breakpoint. |
int |
getInstallCount()
Returns the INSTALL_COUNT attribute of this breakpoint or
0 if the attribute is not set. |
java.lang.String |
getModelIdentifier()
|
java.lang.String |
getModule()
Returns the module name this breakpoint is set in. |
java.lang.String |
getSourceHandle()
Returns the source handle this breakpoint is set in. |
ICDebugTarget[] |
getTargetFilters()
Returns all target filters set on this breakpoint. |
ICThread[] |
getThreadFilters(ICDebugTarget target)
Returns the threads in the given target in which this breakpoint is enabled or null if this breakpoint is enabled in
all threads in the given target. |
java.lang.String |
getThreadId()
Returns the identifier of the thread this breakpoint is restricted in. |
void |
handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
|
int |
incrementInstallCount()
Increments the install count of this breakpoint |
boolean |
isConditional()
Returns whether this breakpoint is conditional. |
boolean |
isInstalled()
Returns whether this breakpoint is installed in at least one debug target. |
void |
register(boolean register)
Add this breakpoint to the breakpoint manager, or sets it as unregistered. |
void |
removeTargetFilter(ICDebugTarget target)
Removes the given target from the breakpoint's target list. |
void |
removeThreadFilters(ICThread[] threads)
Removes this breakpoint's thread filters in the given target, if any. |
void |
resetInstallCount()
Resets the install count of this breakpoint |
void |
setCondition(java.lang.String condition)
Sets the condition associated with this breakpoint. |
void |
setIgnoreCount(int ignoreCount)
Sets the ignore count attribute for this breakpoint. |
void |
setModule(java.lang.String module)
Sets the module name of this breakpoint. |
void |
setSourceHandle(java.lang.String sourceHandle)
Sets the source handle of this breakpoint. |
void |
setTargetFilter(ICDebugTarget target)
Add the given target to the list of this breakpoint's targets. |
void |
setThreadFilters(ICThread[] threads)
Restricts this breakpoint to suspend only in the given threads when encounterd in the given threads' target. |
void |
setThreadId(java.lang.String threadId)
Restricts this breakpoint to suspend only in the given thread when encounterd in the given thread's target. |
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 |
Constructor Detail |
---|
public CBreakpoint()
public CBreakpoint(org.eclipse.core.resources.IResource resource, java.lang.String markerType, java.util.Map attributes, boolean add) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
Method Detail |
---|
public void createMarker(org.eclipse.core.resources.IResource resource, java.lang.String markerType, java.util.Map attributes, boolean add) throws org.eclipse.debug.core.DebugException
org.eclipse.debug.core.DebugException
public java.lang.String getModelIdentifier()
getModelIdentifier
in interface org.eclipse.debug.core.model.IBreakpoint
public boolean isInstalled() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
isInstalled
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic java.lang.String getCondition() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
getCondition
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic void setCondition(java.lang.String condition) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
setCondition
in interface ICBreakpoint
condition
- the conditional expression
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic int getIgnoreCount() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
getIgnoreCount
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic void setIgnoreCount(int ignoreCount) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
setIgnoreCount
in interface ICBreakpoint
ignoreCount
- the new ignore count
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic java.lang.String getThreadId() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
getThreadId
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic void setThreadId(java.lang.String threadId) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
setThreadId
in interface ICBreakpoint
threadId
- the thread identifier
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic java.lang.String getSourceHandle() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
getSourceHandle
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic void setSourceHandle(java.lang.String sourceHandle) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
setSourceHandle
in interface ICBreakpoint
sourceHandle
- the source handle
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
handleDebugEvents
in interface org.eclipse.debug.core.IDebugEventSetListener
public void register(boolean register) throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public void resetInstallCount() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
resetInstallCount
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property
on this breakpoint's underlying markerpublic int incrementInstallCount() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
incrementInstallCount
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property
on this breakpoint's underlying markerpublic int getInstallCount() throws org.eclipse.core.runtime.CoreException
INSTALL_COUNT
attribute of this breakpoint or
0 if the attribute is not set.
org.eclipse.core.runtime.CoreException
public int decrementInstallCount() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
decrementInstallCount
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property
on this breakpoint's underlying markerpublic boolean isConditional() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
isConditional
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic ICDebugTarget[] getTargetFilters() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
getTargetFilters
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to determine this breakpoint's
target filterspublic ICThread[] getThreadFilters(ICDebugTarget target) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
null
if this breakpoint is enabled in
all threads in the given target.
getThreadFilters
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to determine this breakpoint's thread
filterspublic void removeTargetFilter(ICDebugTarget target) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
removeTargetFilter
in interface ICBreakpoint
target
- the target filter to be removed
org.eclipse.core.runtime.CoreException
- if unable to remove the target filterpublic void removeThreadFilters(ICThread[] threads) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
removeThreadFilters
in interface ICBreakpoint
threads
- the thread filters to be removed
org.eclipse.core.runtime.CoreException
- if unable to remove the thread filterpublic void setTargetFilter(ICDebugTarget target) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
setTargetFilter
in interface ICBreakpoint
target
- the target to add to the list of this breakpoint's targets.
org.eclipse.core.runtime.CoreException
- if unable to set the target filterpublic void setThreadFilters(ICThread[] threads) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
setThreadFilters
in interface ICBreakpoint
threads
- the thread filters to be set
org.eclipse.core.runtime.CoreException
- if unable to set the thread filterspublic void fireChanged()
public java.lang.String getModule() throws org.eclipse.core.runtime.CoreException
ICBreakpoint
getModule
in interface ICBreakpoint
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying markerpublic void setModule(java.lang.String module) throws org.eclipse.core.runtime.CoreException
ICBreakpoint
setModule
in interface ICBreakpoint
module
- the module name
org.eclipse.core.runtime.CoreException
- if unable to access the property on this breakpoint's
underlying marker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |