Sha256: aefcc2fe8be6da78acdb406f957e2201a4bd4b53d49484bf86b1787c0245e833

Contents?: true

Size: 583 Bytes

Versions: 17

Compression:

Stored size: 583 Bytes

Contents

require File.dirname(__FILE__) + "/../command_handler"
require File.dirname(__FILE__) + "/models/r_widget"

class WidgetCommandHandler
  include CommandHandler
  
  include_package 'org.eclipse.swt.widgets'

  def can_handle?(parent, command_symbol, *args, &block)
    parent.is_a?(RWidget) and 
      command_symbol.to_s != "shell" and
      RWidget.widget_exists?(command_symbol.to_s)
  end
  
  def do_handle(parent, command_symbol, *args, &block)
    Glimmer.logger.debug "widget styles are: " + args.inspect
    RWidget.new(command_symbol.to_s, parent.widget, args)
  end
  
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
glimmer-0.3.5 lib/command_handlers/widget_command_handler.rb
glimmer-0.3.4 lib/command_handlers/widget_command_handler.rb
glimmer-0.3.3 lib/command_handlers/widget_command_handler.rb
glimmer-0.3.2 lib/command_handlers/widget_command_handler.rb
glimmer-0.3.1 lib/command_handlers/widget_command_handler.rb
glimmer-0.2.5 lib/command_handlers/widget_command_handler.rb
glimmer-0.2.4 lib/command_handlers/widget_command_handler.rb
glimmer-0.2.3 lib/command_handlers/widget_command_handler.rb
glimmer-0.2.2 lib/command_handlers/widget_command_handler.rb
glimmer-0.2.1 lib/command_handlers/widget_command_handler.rb
glimmer-0.2.0 lib/command_handlers/widget_command_handler.rb
glimmer-0.1.11.SWT4.14 lib/command_handlers/widget_command_handler.rb
glimmer-0.1.11.470 lib/command_handlers/widget_command_handler.rb
glimmer-0.1.10.470 lib/command_handlers/widget_command_handler.rb
glimmer-0.1.9.470 lib/command_handlers/widget_command_handler.rb
glimmer-0.1.8.470 lib/command_handlers/widget_command_handler.rb
glimmer-0.1.5.470 lib/command_handlers/widget_command_handler.rb