Sha256: e0334699785876579a6f2c61afe1526d7ba30a657a0be34ada7a962ea90445f4
Contents?: true
Size: 932 Bytes
Versions: 3
Compression:
Stored size: 932 Bytes
Contents
require File.dirname(__FILE__) + "/../../command_handler" require File.dirname(__FILE__) + "/../g_widget" require File.dirname(__FILE__) + "/../custom_widget" module Glimmer module SWT module CommandHandlers # Responsible for providing a readable keyword (command symbol) to capture # and return tree properties for use in TreeItemsDataBindingCommandHandler class TreePropertiesDataBindingCommandHandler include CommandHandler include_package 'org.eclipse.swt' include_package 'org.eclipse.swt.widgets' def can_handle?(parent, command_symbol, *args, &block) (parent.is_a?(GWidget) || parent.is_a?(CustomWidget)) and parent.widget.is_a?(Tree) and command_symbol.to_s == "tree_properties" and block == nil end def do_handle(parent, command_symbol, *args, &block) args end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems