1
0
Fork 0
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:
Mikhail Khodjaiants 2003-05-05 19:51:46 +00:00
parent bcc744554c
commit 7ef7176558
2 changed files with 17 additions and 0 deletions

View file

@ -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.
*

View file

@ -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 );
}
}