Class: Redcar::TodoList::ViewTodoListCommand

Inherits:
Command show all
Defined in:
plugins/todo_list/lib/todo_list.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 Sensitive

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

Methods included from Observable

#add_listener, #notify_listeners, #remove_listener

Instance Method Details

- (Object) execute



39
40
41
42
43
44
45
46
# File 'plugins/todo_list/lib/todo_list.rb', line 39

def execute
  project = Project::Manager.in_window(win)
  controller = TodoController.new(project.home_dir)
  tab = win.new_tab(HtmlTab)
  tab.html_view.controller = controller
  tab.icon = :document_list
  tab.focus
end