468 |
return unless @current_file |
return unless @current_file |
469 |
begin |
begin |
470 |
File.open(@current_file, "wb") do |file| |
File.open(@current_file, "wb") do |file| |
471 |
file.write(@model.get_text(@model.text_length+1)) |
file.write(@model.get_text(@model.text_length+1)) |
472 |
end |
end |
473 |
rescue |
rescue |
474 |
raise # leave it to the caller to handle the exception |
raise # leave it to the caller to handle the exception |
612 |
## |
## |
613 |
# Add/Delete breakpoint on the given line |
# Add/Delete breakpoint on the given line |
614 |
# (add if there is none, delete if there is one) |
# (add if there is none, delete if there is one) |
615 |
def toggle_breakpoint(line, notify=true) |
def toggle_breakpoint(line, notify=true) |
616 |
if ( @model.marker_get(line) & (1<<Scintilla::MARKER_BRKPT | 1<<Scintilla::MARKER_ACTIVE_BRKPT) == 0) |
if ( @model.marker_get(line) & (1<<Scintilla::MARKER_BRKPT | 1<<Scintilla::MARKER_ACTIVE_BRKPT) == 0) |
617 |
@model.marker_add(line, Scintilla::MARKER_BRKPT) |
@model.marker_add(line, Scintilla::MARKER_BRKPT) |
618 |
@epane_renderer.add_breakpoint(line+1) if notify && @epane_renderer |
@epane_renderer.add_breakpoint(line+1) if notify && @epane_renderer |
619 |
else |
else |
620 |
@model.marker_delete(line, Scintilla::MARKER_BRKPT) |
@model.marker_delete(line, Scintilla::MARKER_BRKPT) |