com.aptana.ide.debug.core.model
Interface IJSLineBreakpoint

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IBreakpoint, org.eclipse.debug.core.model.ILineBreakpoint
All Known Implementing Classes:
JSDebugLineBreakpoint

public interface IJSLineBreakpoint
extends org.eclipse.debug.core.model.ILineBreakpoint

Author:
Max Stepanov

Field Summary
 
Fields inherited from interface org.eclipse.debug.core.model.IBreakpoint
BREAKPOINT_MARKER, ENABLED, ID, LINE_BREAKPOINT_MARKER, PERSISTED, REGISTERED
 
Method Summary
 java.lang.String getCondition()
          Returns the conditional expression associated with this breakpoint, or null if this breakpoint does not have a condition.
 int getHitCount()
          Returns this breakpoint's hit count or, -1 if this breakpoint does not have a hit count.
 boolean isConditionEnabled()
          Returns whether the condition on this breakpoint is enabled.
 boolean isConditionSuspendOnTrue()
          Returns whether the breakpoint suspends when the value of the condition is true or when the value of the condition changes.
 boolean isRunToLine()
          isRunToLine
 void setCondition(java.lang.String condition)
          Sets the condition associated with this breakpoint.
 void setConditionEnabled(boolean enabled)
          Sets the enabled state of this breakpoint's condition to the given state.
 void setConditionSuspendOnTrue(boolean suspendOnTrue)
          Set the suspend state of this breakpoint's condition.
 void setHitCount(int count)
          Sets the hit count attribute of this breakpoint.
 
Methods inherited from interface org.eclipse.debug.core.model.ILineBreakpoint
getCharEnd, getCharStart, getLineNumber
 
Methods inherited from interface org.eclipse.debug.core.model.IBreakpoint
delete, getMarker, getModelIdentifier, isEnabled, isPersisted, isRegistered, setEnabled, setMarker, setPersisted, setRegistered
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

isRunToLine

boolean isRunToLine()
                    throws org.eclipse.core.runtime.CoreException
isRunToLine

Returns:
boolean
Throws:
org.eclipse.core.runtime.CoreException

getHitCount

int getHitCount()
                throws org.eclipse.core.runtime.CoreException
Returns this breakpoint's hit count or, -1 if this breakpoint does not have a hit count.

Returns:
this breakpoint's hit count, or -1
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property from this breakpoint's underlying marker

setHitCount

void setHitCount(int count)
                 throws org.eclipse.core.runtime.CoreException
Sets the hit count attribute of this breakpoint. If this breakpoint is currently disabled and the hit count is set greater than -1, this breakpoint is automatically enabled.

Parameters:
count - the new hit count
Throws:
org.eclipse.core.runtime.CoreException - if unable to set the property on this breakpoint's underlying marker

getCondition

java.lang.String getCondition()
                              throws org.eclipse.core.runtime.CoreException
Returns the conditional expression associated with this breakpoint, or null if this breakpoint does not have a condition.

Returns:
this breakpoint's conditional expression, or null
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker

setCondition

void setCondition(java.lang.String condition)
                  throws org.eclipse.core.runtime.CoreException
Sets the condition associated with this breakpoint. When the condition is enabled, this breakpoint will only suspend execution when the given condition evaluates to true. Setting the condition to null or an empty string removes the condition.

If this breakpoint does not support conditions, setting the condition has no effect.

Parameters:
condition - conditional expression
Throws:
org.eclipse.core.runtime.CoreException - if unable to set the property on this breakpoint's underlying marker

isConditionEnabled

boolean isConditionEnabled()
                           throws org.eclipse.core.runtime.CoreException
Returns whether the condition on this breakpoint is enabled.

Returns:
whether this breakpoint's condition is enabled
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker

setConditionEnabled

void setConditionEnabled(boolean enabled)
                         throws org.eclipse.core.runtime.CoreException
Sets the enabled state of this breakpoint's condition to the given state. When enabled, this breakpoint will only suspend when its condition evaluates to true. When disabled, this breakpoint will suspend as it would with no condition defined.

Parameters:
enabled -
Throws:
org.eclipse.core.runtime.CoreException - if unable to set the property on this breakpoint's underlying marker

isConditionSuspendOnTrue

boolean isConditionSuspendOnTrue()
                                 throws org.eclipse.core.runtime.CoreException
Returns whether the breakpoint suspends when the value of the condition is true or when the value of the condition changes.

Returns:
true if this breakpoint suspends when the value of the condition is true, false if this breakpoint suspends when the value of the condition changes.
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker

setConditionSuspendOnTrue

void setConditionSuspendOnTrue(boolean suspendOnTrue)
                               throws org.eclipse.core.runtime.CoreException
Set the suspend state of this breakpoint's condition. If the value is true, the breakpoint will stop when the value of the condition is true. If the value is false, the breakpoint will stop when the value of the condition changes.

Parameters:
suspendOnTrue -
Throws:
org.eclipse.core.runtime.CoreException - if unable to access the property on this breakpoint's underlying marker