Module: Glimmer

Included in:
DataBinding::ListSelectionBinding, DataBinding::WidgetBinding, SWT::TableProxy, SWT::TreeProxy
Defined in:
lib/glimmer/rake_task.rb,
lib/ext/glimmer.rb,
lib/glimmer/launcher.rb,
lib/ext/glimmer/config.rb,
lib/glimmer/dsl/swt/dsl.rb,
lib/glimmer/swt/packages.rb,
lib/glimmer/swt/dnd_proxy.rb,
lib/glimmer/swt/swt_proxy.rb,
lib/glimmer/rake_task/list.rb,
lib/glimmer/swt/font_proxy.rb,
lib/glimmer/swt/menu_proxy.rb,
lib/glimmer/swt/properties.rb,
lib/glimmer/swt/tree_proxy.rb,
lib/glimmer/swt/color_proxy.rb,
lib/glimmer/swt/image_proxy.rb,
lib/glimmer/swt/shell_proxy.rb,
lib/glimmer/swt/table_proxy.rb,
lib/glimmer/ui/custom_shell.rb,
lib/glimmer/swt/cursor_proxy.rb,
lib/glimmer/swt/custom/shape.rb,
lib/glimmer/swt/layout_proxy.rb,
lib/glimmer/swt/widget_proxy.rb,
lib/glimmer/ui/custom_widget.rb,
lib/glimmer/rake_task/package.rb,
lib/glimmer/swt/display_proxy.rb,
lib/glimmer/util/proc_tracker.rb,
lib/glimmer/rake_task/scaffold.rb,
lib/glimmer/swt/tab_item_proxy.rb,
lib/glimmer/swt/custom/drawable.rb,
lib/glimmer/swt/date_time_proxy.rb,
lib/glimmer/swt/sash_form_proxy.rb,
lib/glimmer/swt/transform_proxy.rb,
lib/glimmer/swt/custom/animation.rb,
lib/glimmer/swt/custom/code_text.rb,
lib/glimmer/swt/expand_item_proxy.rb,
lib/glimmer/swt/file_dialog_proxy.rb,
lib/glimmer/swt/layout_data_proxy.rb,
lib/glimmer/swt/message_box_proxy.rb,
lib/glimmer/swt/styled_text_proxy.rb,
lib/glimmer/dsl/swt/dnd_expression.rb,
lib/glimmer/dsl/swt/rgb_expression.rb,
lib/glimmer/dsl/swt/swt_expression.rb,
lib/glimmer/swt/custom/radio_group.rb,
lib/glimmer/swt/table_column_proxy.rb,
lib/glimmer/dsl/swt/bind_expression.rb,
lib/glimmer/dsl/swt/exec_expression.rb,
lib/glimmer/dsl/swt/font_expression.rb,
lib/glimmer/dsl/swt/menu_expression.rb,
lib/glimmer/dsl/swt/rgba_expression.rb,
lib/glimmer/dsl/swt/color_expression.rb,
lib/glimmer/dsl/swt/image_expression.rb,
lib/glimmer/dsl/swt/pixel_expression.rb,
lib/glimmer/dsl/swt/shape_expression.rb,
lib/glimmer/dsl/swt/shell_expression.rb,
lib/glimmer/swt/style_constantizable.rb,
lib/glimmer/dsl/swt/cursor_expression.rb,
lib/glimmer/dsl/swt/dialog_expression.rb,
lib/glimmer/dsl/swt/layout_expression.rb,
lib/glimmer/dsl/swt/widget_expression.rb,
lib/glimmer/swt/custom/checkbox_group.rb,
lib/glimmer/swt/widget_listener_proxy.rb,
lib/glimmer/dsl/swt/display_expression.rb,
lib/glimmer/dsl/swt/observe_expression.rb,
lib/glimmer/swt/directory_dialog_proxy.rb,
lib/glimmer/data_binding/widget_binding.rb,
lib/glimmer/dsl/swt/menu_bar_expression.rb,
lib/glimmer/dsl/swt/multiply_expression.rb,
lib/glimmer/dsl/swt/property_expression.rb,
lib/glimmer/dsl/swt/tab_item_expression.rb,
lib/glimmer/dsl/swt/animation_expression.rb,
lib/glimmer/dsl/swt/sync_exec_expression.rb,
lib/glimmer/dsl/swt/transform_expression.rb,
lib/glimmer/swt/scrolled_composite_proxy.rb,
lib/glimmer/dsl/swt/async_exec_expression.rb,
lib/glimmer/dsl/swt/timer_exec_expression.rb,
lib/glimmer/data_binding/observable_widget.rb,
lib/glimmer/dsl/swt/expand_item_expression.rb,
lib/glimmer/dsl/swt/file_dialog_expression.rb,
lib/glimmer/dsl/swt/layout_data_expression.rb,
lib/glimmer/dsl/swt/message_box_expression.rb,
lib/glimmer/data_binding/tree_items_binding.rb,
lib/glimmer/dsl/swt/data_binding_expression.rb,
lib/glimmer/data_binding/table_items_binding.rb,
lib/glimmer/dsl/swt/custom_widget_expression.rb,
lib/glimmer/dsl/swt/block_property_expression.rb,
lib/glimmer/dsl/swt/tree_properties_expression.rb,
lib/glimmer/dsl/swt/widget_listener_expression.rb,
lib/glimmer/data_binding/list_selection_binding.rb,
lib/glimmer/dsl/swt/directory_dialog_expression.rb,
lib/glimmer/dsl/swt/column_properties_expression.rb,
lib/glimmer/dsl/swt/tree_items_data_binding_expression.rb,
lib/glimmer/dsl/swt/table_items_data_binding_expression.rb,
lib/glimmer/dsl/swt/list_selection_data_binding_expression.rb,
lib/glimmer/dsl/swt/combo_selection_data_binding_expression.rb,
lib/glimmer/dsl/swt/radio_group_selection_data_binding_expression.rb,
lib/glimmer/dsl/swt/checkbox_group_selection_data_binding_expression.rb

Overview

TODO consider turning static keywords like layout_data into methods

Defined Under Namespace

Modules: Config, DSL, DataBinding, RakeTask, SWT, UI, Util Classes: Launcher

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'lib/ext/glimmer.rb', line 26

def included(klass)
  if Object.const_defined?(:ActiveSupport) && ActiveSupport.const_defined?(:Dependencies)
    begin
      ActiveSupport::Dependencies.unhook!
    rescue => e
      # noop TODO support logging unimportant details below debug level
    end
  end
  if Config.import_swt_packages
    klass.include(SWT::Packages)
    klass.extend(SWT::Packages)
  end
  klass.extend(Glimmer)
end