package org.helioviewer.gl3d.plugin.pfss;

import org.helioviewer.base.JavaCompatibility;
import org.helioviewer.jhv.JavaHelioViewer;
import org.helioviewer.jhv.JavaHelioViewerLauncher;
import org.helioviewer.jhv.plugins.pfssplugin.PfssPlugin;

/**
 * Class for testing the external plugin
 *
 * @author Stefan Meier (stefan.meier@fhnw.ch)
 */
public class PfssPluginLauncher {

    /**
     * Used for testing the plugin
     *
     * @param args
     */
    public static void main(String[] args) {

        System.out.println("================================================================");
        System.out.println("JHelioviewer developer version with external plugin compiled-in.");
        System.out.println("================================================================\n\n");

        String[] args2 = JavaCompatibility.copyArrayString(args, args.length + 2);
        args2[args2.length - 2] = "--deactivate-plugin";
        args2[args2.length - 1] = "PfssPlugin.jar";
        JavaHelioViewerLauncher.loadLibs();
        JavaHelioViewer.main(args2, new PfssPlugin(true));
    }
}

@@ -871,12 +871,13 @@
 h + 
-2
+8
 );%0A
+%0A
     
@@ -962,16 +962,342 @@
 h - 1%5D =
+ %22SWEKPlugin.jar%22;%0A        args2%5Bargs2.length - 4%5D = %22--deactivate-plugin%22;%0A        args2%5Bargs2.length - 3%5D = %22EVEPlugin.jar%22;%0A        args2%5Bargs2.length - 5%5D = %22--deactivate-plugin%22;%0A        args2%5Bargs2.length - 6%5D = %22PFSSPlugin.jar%22;%0A        args2%5Bargs2.length - 7%5D = %22--deactivate-plugin%22;%0A        args2%5Bargs2.length - 8%5D =
  %22PfssPl

fix pfss launcher