Sha256: c42cef4fca609f5a90fed15d1baa8dda05f03fef4a48c4d0d4f2c95b1759c095
Contents?: true
Size: 618 Bytes
Versions: 4
Compression:
Stored size: 618 Bytes
Contents
require File.dirname(__FILE__) + "/../command_handler" require File.dirname(__FILE__) + "/models/g_widget" module Glimmer class WidgetCommandHandler include CommandHandler include_package 'org.eclipse.swt.widgets' def can_handle?(parent, command_symbol, *args, &block) parent.is_a?(GWidget) and command_symbol.to_s != "shell" and GWidget.widget_exists?(command_symbol.to_s) end def do_handle(parent, command_symbol, *args, &block) Glimmer.logger.debug "widget styles are: " + args.inspect GWidget.new(command_symbol.to_s, parent.widget, args) end end end
Version data entries
4 entries across 4 versions & 1 rubygems