plugins/application/lib/application/dialog.rb in redcar-0.2.9dev vs plugins/application/lib/application/dialog.rb in redcar-0.3.0dev
- old
+ new
@@ -3,9 +3,14 @@
class Dialog
# Prompt the user with an open file dialog. Returns a path.
def self.open_file(window, options)
Redcar.gui.dialog_adapter.open_file(window, options)
end
+
+ # Prompt the user with an open directory dialog. Returns a path.
+ def self.open_directory(window, options)
+ Redcar.gui.dialog_adapter.open_directory(window, options)
+ end
# Prompt the user with an save file dialog. Returns a path.
def self.save_file(window, options)
Redcar.gui.dialog_adapter.save_file(window, options)
end
\ No newline at end of file