Class: VisualizerMainApp

Inherits:
JRubyFX::Application
  • Object
show all
Defined in:
lib/jruby_visualizer/visualizer_main_app.rb

Overview

The UI for the whole JRuby visualizer:

* shows AST and Ruby code
* enables traceability between AST nodes and Ruby code lines (clicks on AST)
* launches other UI applications
* can execute compiler passes

Instance Method Summary collapse

Instance Method Details

#start(stage) ⇒ Object



109
110
111
112
113
114
115
116
# File 'lib/jruby_visualizer/visualizer_main_app.rb', line 109

def start(stage)
  compiler_data = JRubyVisualizer.compiler_data
  with(stage, title: 'JRuby Visualizer') do
    fxml(JRubyVisualizerController, initialize: [compiler_data])
    icons.add(Image.new(resource_url(:images, 'jruby-icon-32.png').to_s))
    show
  end
end