library/chooser/chooser.rb in jruby_art-2.2.2 vs library/chooser/chooser.rb in jruby_art-2.3.0

- old
+ new

@@ -1,19 +1,20 @@ # frozen_string_literal: true + # Usage: # load_library :chooser -# +# # def setup - # java_signature 'void selectInput(String, String)' - # selectInput('Select a file to process:', 'fileSelected') +# java_signature 'void selectInput(String, String)' +# selectInput('Select a file to process:', 'fileSelected') # end -# +# # def fileSelected(selection) - # if selection.nil? - # puts 'Window was closed or the user hit cancel.' - # else - # puts format('User selected %s', selection.get_absolute_path) - # end +# if selection.nil? +# puts 'Window was closed or the user hit cancel.' +# else +# puts format('User selected %s', selection.get_absolute_path) +# end # end class Processing::App include Java::MonkstoneFilechooser::Chooser end