Sha256: c11365035cbbee276da9ed2ec14554f24a213536e04abba5a09d15c45b9390dc
Contents?: true
Size: 847 Bytes
Versions: 3
Compression:
Stored size: 847 Bytes
Contents
require File.dirname(__FILE__) + "/../../command_handler" require File.dirname(__FILE__) + "/../g_widget" require File.dirname(__FILE__) + "/../custom_widget" require File.dirname(__FILE__) + "/../g_layout_data" module Glimmer module SWT module CommandHandlers class LayoutDataCommandHandler include CommandHandler include_package 'org.eclipse.swt.widgets' include_package 'org.eclipse.swt.layout' def can_handle?(parent, command_symbol, *args, &block) (parent.is_a?(GWidget) || parent.is_a?(CustomWidget)) and command_symbol.to_s == 'layout_data' end def do_handle(parent, command_symbol, *args, &block) Glimmer.logger.debug "Layout Data args are: #{args.inspect}" GLayoutData.new(parent.widget, args) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems