Class: Glimmer::SWT::LatestDialogProxy

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

Overview

< DialogProxy

Instance Method Summary collapse

Constructor Details

#initialize(parent, args, block) ⇒ LatestDialogProxy

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



28
29
30
# File 'lib/glimmer/swt/latest_dialog_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_dialog_proxy.rb', line 32

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