Class: Redcar::DocumentCommand

Inherits:
TabCommand show all
Defined in:
plugins/edit_view/lib/edit_view/document/command.rb

Direct Known Subclasses

Redcar::DocumentSearch::FindCommandBase, Redcar::DocumentSearch::FindNextRegex, Redcar::DocumentSearch::ReplaceCommandBase, EditView::AlignAssignmentCommand, EditView::TextConversionCommand, LineTools::ClearLineCommand, LineTools::KillLineCommand, LineTools::LowerTextCommand, LineTools::RaiseTextCommand, LineTools::ReplaceLineCommand, LineTools::TrimLineAfterCursorCommand, Macros::RunLastCommand, Runnables::RunEditTabCommand, Snippets::OpenSnippetExplorer, Top::BackspaceCommand, Top::BackwardCharCommand, Top::ChangeIndentCommand, Top::CopyCommand, Top::CutCommand, Top::DeleteCharCommand, Top::DuplicateCommand, Top::ForwardCharCommand, Top::MoveBottomCommand, Top::MoveEndCommand, Top::MoveHomeCommand, Top::MoveNextLineCommand, Top::MoveTopCommand, Top::OpenLineCommand, Top::PasteCommand, Top::PrintScopeCommand, Top::SelectAllCommand, Top::SelectLineCommand, Top::SelectWordCommand, Top::SortLinesCommand, Top::ToggleBlockSelectionCommand, Top::TransposeCharactersCommand

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 Sensitive

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

Methods included from Observable

#add_listener, #notify_listeners, #remove_listener

Instance Method Details

- (Object) _finished



5
6
7
# File 'plugins/edit_view/lib/edit_view/document/command.rb', line 5

def _finished
  edit_view.history.record(self) if edit_view
end

- (Object) run_in_focussed_tab_edit_view



9
10
11
12
13
# File 'plugins/edit_view/lib/edit_view/document/command.rb', line 9

def run_in_focussed_tab_edit_view
  if edit_view = Redcar::EditView.focussed_tab_edit_view
    run(:env => {:edit_view => edit_view})
  end
end