      [java.util.zip ZipFile]
      [org.eclipse.core.runtime NullProgressMonitor
                             SubProgressMonitor
+                            IProgressMonitor
                             CoreException
                             IStatus
                             Platform

      nil)))

(defn- open-browser
"Open a browser for the running labrepl web page"
[]
	(if (wait-for-resource check-server *timeout* *step*)
   (let
	  [browser-support (.getBrowserSupport (PlatformUI/getWorkbench))
	   browser
	   (.createBrowser 
	      browser-support 
	      (reduce bit-or 
	        [IWorkbenchBrowserSupport/LOCATION_BAR
	          IWorkbenchBrowserSupport/NAVIGATION_BAR
	          IWorkbenchBrowserSupport/AS_EDITOR]) 
	      nil "Labrepl" "Labrepl Instructions")]
	   (.openURL browser (URL. (str "http://localhost:" *port*))))))
 
(defn- fix-libraries
  "Enter all the JAR files in the lib directory to the Java build path of the project"

     [org.eclipse.ui.wizards.datatransfer ImportOperation
                                          ZipFileStructureProvider]
     [org.eclipse.ui.browser IWorkbenchBrowserSupport]
     [org.eclipse.ui.progress WorkbenchJob])
  
  (:use
    [leiningen.core :only [read-project defproject]]
