package org.helioviewer.jhv.launcher;

import java.awt.EventQueue;

import org.helioviewer.jhv.JavaHelioViewer;
import org.helioviewer.jhv.plugins.eveplugin.EVEPlugin;
import org.helioviewer.jhv.plugins.pfssplugin.PfssPlugin;
import org.helioviewer.jhv.plugins.swek.SWEKPlugin;
import org.helioviewer.jhv.plugins.swhvhekplugin.SWHVHEKPlugin;
import org.helioviewer.viewmodelplugin.controller.PluginManager;

/**
 * Class for launching jhv with several plugins added.
 *
 * @author Bram.Bourgoignie (Bram.Bourgoignie@oma.be)
 *
 */
public class SWHVLauncher {

    public static void main(String[] args) {
        System.out.println("=================================================================");
        System.out.println("JHelioviewer developer version with external plugins compiled-in.");
        System.out.println("=================================================================\n\n");

        String[] args2 = new String[7];

        args2[0] = "--remote-plugins";
        args2[1] = "--deactivate-plugin";
        args2[2] = "SWEKPlugin.jar";
        args2[3] = "--deactivate-plugin";
        args2[4] = "EVEPlugin.jar";
        args2[5] = "--deactivate-plugin";
        args2[6] = "SWHVHEKPlugin.jar";
        args2[5] = "--deactivate-plugin";
        args2[6] = "PfssPlugin.jar";
        JavaHelioViewer.main(args2);

        EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                PluginManager.getSingletonInstance().addPlugin(EVEPlugin.class.getClassLoader(), new EVEPlugin(), null);
                PluginManager.getSingletonInstance().addPlugin(SWEKPlugin.class.getClassLoader(), new SWEKPlugin(false), null);
                PluginManager.getSingletonInstance().addPlugin(SWHVHEKPlugin.class.getClassLoader(), new SWHVHEKPlugin(), null);
                PluginManager.getSingletonInstance().addPlugin(PfssPlugin.class.getClassLoader(), new PfssPlugin(), null);
            }
        });
    }

}

@@ -105,16 +105,76 @@
 Viewer;%0A
+import org.helioviewer.jhv.plugin.controller.PluginManager;%0A
 import o
@@ -398,73 +398,8 @@
 gin;
-%0Aimport org.helioviewer.viewmodelplugin.controller.PluginManager;
 %0A%0A/*

update import