Class: Redcar::Scm::CommitMirror::CommitChangesCommand

Inherits:
Command show all
Defined in:
plugins/scm/lib/scm/commit_mirror.rb

Constant Summary

Constants included from Observable

Observable::ASPECTS

Instance Attribute Summary

Attributes inherited from Command

#error

Instance Method Summary (collapse)

Methods inherited from Command

active_changed, #environment, inherited, #inspect, norecord, record?, #run

Methods included from Redcar::Sensitive

#active?, #sensitivities, #sensitivity_names, #sensitize

Methods included from Observable

#add_listener, #notify_listeners, #remove_listener

Instance Method Details

- (Object) execute



49
50
51
52
53
54
55
56
57
# File 'plugins/scm/lib/scm/commit_mirror.rb', line 49

def execute
  tab = Redcar.app.focussed_window.focussed_notebook.focussed_tab
  begin
    doc = tab.edit_view.document
    doc.mirror.commit(doc.to_s)
  rescue
    Application::Dialog.message_box($!.message)
  end
end