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