com.github.croesch.micro_debug.gui.debug
Class MacroLineBreakpointHandler

java.lang.Object
  extended by com.github.croesch.micro_debug.gui.debug.MacroLineBreakpointHandler
All Implemented Interfaces:
ILineBreakPointManager

public final class MacroLineBreakpointHandler
extends Object

A wrapper for the macro code breakpoint management in the debugger for the specific view.

Since:
Date: Apr 19, 2012
Author:
croesch

Constructor Summary
MacroLineBreakpointHandler(com.github.croesch.micro_debug.debug.BreakpointManager bpm)
          Construct this handler to manage macro breakpoints.
 
Method Summary
protected  void addBreakpoint(int line)
          Adds a breakpoint at the given line.
protected  com.github.croesch.micro_debug.debug.BreakpointManager getBreakpointManager()
          Returns the BreakpointManager containing all information about breakpoints in the debugger.
 boolean isBreakpoint(int line)
          Returns whether there is currently a breakpoint set for the given line.
protected  void removeBreakpoint(int line)
          Removes a breakpoint at the given line.
 void toggleBreakpoint(int line)
          Toggles the breakpoint for the given line: Switches it on, if it was off; switches it off, if it was on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MacroLineBreakpointHandler

public MacroLineBreakpointHandler(com.github.croesch.micro_debug.debug.BreakpointManager bpm)
Construct this handler to manage macro breakpoints.

Parameters:
bpm - the BreakpointManager that has all information about breakpoints in the debugger.
Since:
Date: Apr 19, 2012
Method Detail

isBreakpoint

public boolean isBreakpoint(int line)
Returns whether there is currently a breakpoint set for the given line.

Parameters:
line - the number of the line that should be checked for a breakpoint.
Returns:
true whether there is currently a breakpoint in the given line,
false otherwise.

addBreakpoint

protected void addBreakpoint(int line)
Adds a breakpoint at the given line.

Parameters:
line - the line to set the breakpoint

removeBreakpoint

protected void removeBreakpoint(int line)
Removes a breakpoint at the given line.

Parameters:
line - the line to remove any breakpoint

getBreakpointManager

@NotNull
protected com.github.croesch.micro_debug.debug.BreakpointManager getBreakpointManager()
Returns the BreakpointManager containing all information about breakpoints in the debugger.

Returns:
the BreakpointManager that has all information about breakpoints
Since:
Date: Apr 18, 2012

toggleBreakpoint

public final void toggleBreakpoint(int line)
Toggles the breakpoint for the given line: Switches it on, if it was off; switches it off, if it was on.

Specified by:
toggleBreakpoint in interface ILineBreakPointManager
Parameters:
line - the number of the line to toggle the breakpoint


Copyright © 2012. All Rights Reserved.