/**
*
*/
package org.eclipse.dltk.rhino.dbgp;
import java.util.HashMap;
final class SetBreakPointCommand extends DBGPDebugger.Command {
/**
*
*/
private final DBGPDebugger debugger;
/**
* @param debugger
*/
SetBreakPointCommand(DBGPDebugger debugger) {
this.debugger = debugger;
}
@Override
void parseAndExecute(String command, HashMap options) {
BreakPoint p = new BreakPoint(options);
this.debugger.stackmanager.registerBreakPoint(p);
this.debugger.printResponse("<response command=\"breakpoint_set\"\r\n"
+ " transaction_id=\"" + options.get("-i") + "\" " + " id=\"p"
+ p.id + "\" state=\"enabled\" > " + "</response>\r\n" + "");
}
}