/*
 * Arthur Edelstein, UCSF, 2011
 */

package org.micromanager.clojureeditor;

import org.micromanager.api.MMPlugin;
import org.micromanager.api.ScriptInterface;
import clooj.core;

public class ClojureEditorPlugin implements MMPlugin {
   public static String menuName = "Clojure editor";
   
   public void dispose() {
      // do nothing
   }

   public void setApp(ScriptInterface app) {
      // do nothing.
   }

   public void show() {
      
      core.main(new String[] {""});
   }

   public void configurationChanged() {
      throw new UnsupportedOperationException("Not supported yet.");
   }

   public String getDescription() {
      throw new UnsupportedOperationException("Not supported yet.");
   }

   public String getInfo() {
      throw new UnsupportedOperationException("Not supported yet.");
   }

   public String getVersion() {
      throw new UnsupportedOperationException("Not supported yet.");
   }

   public String getCopyright() {
      throw new UnsupportedOperationException("Not supported yet.");
   }

}


@@ -160,27 +160,8 @@
 ace;
-%0Aimport clooj.core;
 %0A%0Apu
@@ -429,42 +429,24 @@
     
-%0A      core.main(new String%5B%5D %7B%22%22%7D
+clooj.core.show(
 );%0A 

switch to "show"