Sha256: 34a97239682f520ec80db42f125932311626ca5b83780cf20d512b62dfe54663
Contents?: true
Size: 567 Bytes
Versions: 3
Compression:
Stored size: 567 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) puts "widget styles are: " + args.inspect RWidget.new(command_symbol.to_s, parent.widget, args) end end
Version data entries
3 entries across 3 versions & 1 rubygems