         build-group (s/border-panel
                       :center (s/config! console :id :build-console))
         run-action (fn [e]
-                     (toggle-buttons build-group (lein/is-java-project? path))
                      (lein/run-project process in out path))
         run-repl-action (fn [e]
-                          (toggle-buttons build-group
-                                          (not (lein/is-java-project? path)))
                           (lein/run-repl-project process in out path)
                           (s/request-focus! (.getView (.getViewport console))))
         reload-action (fn [e]

                                      :listen [:action set-android-sdk]
                                      :focusable? false)])]
    (s/config! build-group :north btn-group)
    (toggle-buttons build-group false)
    (shortcuts/create-mappings build-group
                               {:run-button run-action
                                :run-repl-button run-repl-action

    (.enterLine console (str "(do " code ")")))
  (s/request-focus! (.getView (.getViewport console))))

(defn create-builder
  [path]
  (let [console (ui/create-console)
