/**
 *
 */
package org.helioviewer.jhv.plugins.swek;

import org.helioviewer.jhv.plugins.swek.view.SWEKPluginPanel;
import org.helioviewer.viewmodel.renderer.physical.PhysicalRenderer;
import org.helioviewer.viewmodel.view.OverlayView;
import org.helioviewer.viewmodel.view.opengl.OverlayPluginContainer;
import org.helioviewer.viewmodelplugin.overlay.OverlayContainer;
import org.helioviewer.viewmodelplugin.overlay.OverlayControlComponent;
import org.helioviewer.viewmodelplugin.overlay.OverlayControlComponentManager;

/**
 * @author Bram.Bourgoignie@oma.be
 * 
 */
public class SWEKPluginContainer extends OverlayContainer {

    @Override
    public String getName() {
        return "Space Weather Event Knowledgebase";
    }

    @Override
    public String getDescription() {
        return "A description";
    }

    @Override
    protected void installOverlayImpl(OverlayView overlayView, OverlayControlComponentManager controlList) {
        SWEKPluginPanel swekPanel = SWEKPluginPanel.getSWEKPluginPanelInstance();
        OverlayPluginContainer overlayPluginContainer = new OverlayPluginContainer();
        overlayView.addOverlay(overlayPluginContainer);
        controlList.add(new OverlayControlComponent(swekPanel, getName()));

    }

    @Override
    public Class<? extends PhysicalRenderer> getOverlayClass() {
        // TODO Auto-generated method stub
        return null;
    }

}

@@ -47,16 +47,45 @@
 .swek;%0A%0A
+import java.awt.EventQueue;%0A%0A
 import o
@@ -897,16 +897,22 @@
 layImpl(
+final 
 OverlayV
@@ -927,16 +927,22 @@
 layView,
+ final
  Overlay
@@ -976,24 +976,135 @@
 trolList) %7B%0A
+        EventQueue.invokeLater(new Runnable() %7B%0A%0A            @Override%0A            public void run() %7B%0A        
         SWEK
@@ -1169,24 +1169,32 @@
 Instance();%0A
+        
         Over
@@ -1263,24 +1263,32 @@
 ontainer();%0A
+        
         over
@@ -1331,16 +1331,24 @@
 ainer);%0A
+        
         
@@ -1414,16 +1414,43 @@
 ame()));
+%0A            %7D%0A%0A        %7D);
 %0A%0A    %7D%0A

Fix nimbus error