Method: Ruber::OpenFileInProjectDlg#chosen_file

Defined in:
lib/ruber/main_window/open_file_in_project_dlg.rb

#chosen_fileObject

Returns the file chosen by the user or nil if no file has been chosen. The

chosen file is the file last selected in the file list.


144
145
146
147
148
149
# File 'lib/ruber/main_window/open_file_in_project_dlg.rb', line 144

def chosen_file
  selection = @ui.file_list.selection_model.selected_indexes
  return nil if selection.empty?
  idx = selection.first
  File.join(@base_dir, idx.data.to_string.gsub(/\A\./,''))
end