Class: Glimmer::SWT::CommandHandlers::TreePropertiesDataBindingCommandHandler

Inherits:
Object
  • Object
show all
Includes:
CommandHandler
Defined in:
lib/glimmer/swt/command_handlers/tree_properties_data_binding_command_handler.rb

Overview

Responsible for providing a readable keyword (command symbol) to capture and return tree properties for use in TreeItemsDataBindingCommandHandler

Instance Method Summary collapse

Instance Method Details

#can_handle?(parent, command_symbol, *args, &block) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
19
20
# File 'lib/glimmer/swt/command_handlers/tree_properties_data_binding_command_handler.rb', line 15

def can_handle?(parent, command_symbol, *args, &block)
  parent.is_a?(GWidget) and
  parent.widget.is_a?(Tree) and
  command_symbol.to_s == "tree_properties" and
  block == nil
end

#do_handle(parent, command_symbol, *args, &block) ⇒ Object



22
23
24
# File 'lib/glimmer/swt/command_handlers/tree_properties_data_binding_command_handler.rb', line 22

def do_handle(parent, command_symbol, *args, &block)
  args
end