Sha256: 4e01d0f48f2c6f9e2f2a8fee60595fad89cae83fa9cd4336602ac6df95e79b44

Contents?: true

Size: 632 Bytes

Versions: 1

Compression:

Stored size: 632 Bytes

Contents

# Copyright (C) 2007-2008 Annas Al Maleh
# Licensed under the LGPL. See /COPYING.LGPL for more details.

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

class SwtConstantCommandHandler
  include CommandHandler
  
  include_package 'org.eclipse.swt'

  def can_handle?(parent, command_symbol, *args, &block)
      args.size == 0 and
      block == nil
  end
  
  def do_handle(parent, command_symbol, *args, &block)
    puts 'org.eclipse.swt.SWT::' + command_symbol.to_s.upcase
    eval 'org.eclipse.swt.SWT::' + command_symbol.to_s.upcase
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
glimmer-0.1.0.0 src/command_handlers/swt_constant_command_handler.rb