38
39
40
41
42
43
44
45
46
47
48
49
50
|
# File 'lib/glimmer/dsl/swt/message_box_expression.rb', line 38
def interpret(parent, keyword, *args, &block)
potential_parent = args.first
potential_parent = potential_parent.swt_widget if potential_parent.respond_to?(:swt_widget)
parent = nil
if potential_parent.is_a?(Shell)
args.shift
parent = potential_parent
elsif potential_parent.is_a?(Widget)
args.shift
parent = potential_parent.shell
end
Glimmer::SWT::MessageBoxProxy.new(parent, Glimmer::SWT::SWTProxy[args])
end
|