Class: Glimmer::SWT::LatestMessageBoxProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/glimmer/swt/latest_message_box_proxy.rb

Overview

< MessageBoxProxy

Instance Method Summary collapse

Constructor Details

#initialize(parent, args, block) ⇒ LatestMessageBoxProxy

TODO consider overriding all methods from MessageBoxProxy and proxying to them TODO consider the idea of promoting this object into the real message_box once Document is ready



28
29
30
# File 'lib/glimmer/swt/latest_message_box_proxy.rb', line 28

def initialize(parent, args, block)
  # No Op
end

Instance Method Details

#openObject



32
33
34
35
36
37
38
# File 'lib/glimmer/swt/latest_message_box_proxy.rb', line 32

def open
  Document.ready? do
    DisplayProxy.instance.async_exec {
      DisplayProxy.instance.message_boxes.last&.open
    }
  end
end