mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
New method in ICBreakpoint - "isConditional".
This commit is contained in:
parent
bcc744554c
commit
7ef7176558
2 changed files with 17 additions and 0 deletions
|
@ -62,6 +62,15 @@ public interface ICBreakpoint extends IBreakpoint
|
|||
*/
|
||||
public boolean isInstalled() throws CoreException;
|
||||
|
||||
/**
|
||||
* Returns whether this breakpoint is conditional.
|
||||
*
|
||||
* @return whether this breakpoint is conditional
|
||||
* @exception CoreException if unable to access the property
|
||||
* on this breakpoint's underlying marker
|
||||
*/
|
||||
public boolean isConditional() throws CoreException;
|
||||
|
||||
/**
|
||||
* Returns the conditional expression associated with this breakpoint.
|
||||
*
|
||||
|
|
|
@ -248,4 +248,12 @@ public abstract class CBreakpoint extends Breakpoint
|
|||
{
|
||||
super.setAttribute( attributeName, value );
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.model.ICBreakpoint#isConditional()
|
||||
*/
|
||||
public boolean isConditional() throws CoreException
|
||||
{
|
||||
return ( (getCondition() != null && getCondition().trim().length() > 0) || getIgnoreCount() > 0 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue