public void run(String arg) {
   if (!LibraryChecker.checkImageJ()) return;
   if (!IJ.macroRunning()) {
     IJ.error("Cannot install extensions from outside a macro.");
     return;
   }
   Functions.registerExtensions(this);
 }
Beispiel #2
0
 /** Executes the plugin. */
 public void run(String arg) {
   DebugTools.enableLogging("INFO");
   canceled = false;
   success = false;
   if (!LibraryChecker.checkJava() || !LibraryChecker.checkImageJ()) return;
   HashSet<String> missing = new HashSet<String>();
   LibraryChecker.checkLibrary(LibraryChecker.Library.BIO_FORMATS, missing);
   LibraryChecker.checkLibrary(LibraryChecker.Library.OME_JAVA_XML, missing);
   LibraryChecker.checkLibrary(LibraryChecker.Library.FORMS, missing);
   if (!LibraryChecker.checkMissing(missing)) return;
   new Importer(this).run(arg);
 }