 
 ;;
 
+(def chooser (javax.swing.JFileChooser.)) ; FileChooser hack to get system icons
 (def current-filename (atom nil))
 
 (defn get-editor

    (fn [f] (filter #(or (.isDirectory %) (.isFile %)) (.listFiles f)))
    (File. @workspace-directory)
    #_(File. ".")))

(def chooser (javax.swing.JFileChooser.)) ; FileChooser hack to get system icons

(defn render-file-item
  [renderer {:keys [value]}]

        r-is System/in #_(java.io.ByteArrayInputStream.
                          #_(.getBytes "(println 'foobar)\nexit\n(println 'foobar)\n"))
        r-os (java.io.ByteArrayOutputStream.)
        project (project/read (str (:current-project @current-profile) File/separator "project.clj"))
        #_(project/read project-filename)
        #_(assoc (project/read (str (:current-project @current-profile) "/project.clj") #_project-filename)
                :repl-options {:input-stream r-is :output-stream r-os})
