Class: Glimmer::DSL::SWT::FileDialogExpression

Inherits:
StaticExpression
  • Object
show all
Includes:
ParentExpression, TopLevelExpression
Defined in:
lib/glimmer/dsl/swt/file_dialog_expression.rb

Instance Method Summary collapse

Instance Method Details

#can_interpret?(parent, keyword, *args, &block) ⇒ Boolean

Returns:

  • (Boolean)


36
37
38
39
# File 'lib/glimmer/dsl/swt/file_dialog_expression.rb', line 36

def can_interpret?(parent, keyword, *args, &block)
  keyword == 'file_dialog' and
    (parent.nil? or parent.is_a?(Shell) or parent.is_a?(Glimmer::SWT::ShellProxy))
end

#interpret(parent, keyword, *args, &block) ⇒ Object



41
42
43
44
# File 'lib/glimmer/dsl/swt/file_dialog_expression.rb', line 41

def interpret(parent, keyword, *args, &block)
  args = [parent] + args unless parent.nil?
  Glimmer::SWT::FileDialogProxy.send(:new, *args)
end