   (:require [clojure.zip :as z]
             [paredit.loc-utils :as lu]
             [clojure.tools.nrepl :as repl]
-            [ccw.editors.clojure.ClojureHyperlink])
+            [ccw.editors.clojure.ClojureHyperlink]
+            [ccw.editors.clojure.EditorSupport :as editor])
   (:use clojure.contrib.core)
   (:import 
     [org.eclipse.jface.text BadLocationException


(defn detect-hyperlinks
  [offset editor]
  (let [rloc (-> editor .getParseState (EditorSupport/getParseTree) lu/parsed-root-loc)
        l (lu/loc-for-offset rloc offset)]
    (when-let [{:strs #{ns file line}} (and (= :symbol (-> l z/node :tag)) ; TODO transform :strs -> :keys
                                         (find-decl (lu/loc-text l) editor))]

    [ccw.editors.clojure IClojureEditor
                         ClojureEditorMessages
                         IHyperlinkConstants
                         ClojureHyperlink]
    [ccw.debug           ClojureClient]
    [ccw                 ClojureCore])
  (:gen-class
