package org.helioviewer.jhv.plugins.hekplugin;

import org.helioviewer.base.JavaCompatibility;
import org.helioviewer.jhv.JavaHelioViewer;

/**
 * Class for testing the external plugin
 * 
 * @author Andre Dau
 * 
 */
public class HEKPluginLauncher {

    /**
     * Used for testing the plugin
     * 
     * @see org.helioviewer.plugins.hekplugin.hekplugin#main(String[])
     * @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] = "HEKPlugin.jar";
        JavaHelioViewer.main(args2, new HEKPlugin(true));
        // JavaHelioViewer.main(args2);
    }
}

@@ -131,16 +131,68 @@
 oViewer;
+%0Aimport org.helioviewer.jhv.JavaHelioViewerLauncher;
 %0A%0A/**%0A *
@@ -232,17 +232,16 @@
 lugin%0A *
- 
 %0A * @aut
@@ -256,17 +256,16 @@
 e Dau%0A *
- 
 %0A */%0Apub
@@ -338,23 +338,22 @@
  plugin%0A
+
      *
- 
 %0A     * 
@@ -864,16 +864,60 @@
 th + 2);
+%0A        JavaHelioViewerLauncher.loadLibs();
 %0A%0A      
@@ -1072,11 +1072,12 @@
 gin(
-tru
+fals
 e));

fix launcher