   (doseq [i (.getSelectedRows table)]
     (let [f (row-index-to-path i)]
       (if (.exists (File. f))
-        (.openAcquisitionData gui f false)
+        (.openAcquisitionData gui f @open-in-ram)
         (ReportingUtils/showError "File not found.")))))
 
 (defn listen-to-open [table]


(def stop (atom false))

(def prefs (.. Preferences userRoot
      (node "MMDataBrowser") (node "b3d184b1-c580-4f06-a1d9-b9cc00f12641")))


    (constrain-to-parent scroll-pane :n 32 :w 5 :s -5 :e -5
                         search-field :n 5 :w 25 :n 28 :w 200
                         settings-button :n 5 :w 500 :n 28 :w 600
                         open-in-ram-checkbox :n 5 :w 600 :n 28 :w 720
                         refresh-button :n 5 :w 405 :n 28 :w 500
                         search-label :n 5 :w 5 :n 28 :w 25
                         collection-label :n 5 :w 205 :n 28 :w 275
