 (ns ccw.repl.cmdhistory
   (:use [clojure.core.incubator :only [-?>]])
+  (:require [ccw.util.edn :refer [read-vector]])
   (:import
     ccw.CCWPlugin
     org.eclipse.core.runtime.jobs.Job

    (if pref-node
      [(into (or (-?> pref-node
                   (.get history-key "[]")
                   read-string)
               [])
         (@queued-commands project-name))
       (partial queue-expression project-name)]

(defn- schedule-job
  []
  (when (== Job/NONE (.getState save-cmds-job))
    (.schedule save-cmds-job)))
