package org.helioviewer.gl3d.plugin.pfss;

import org.helioviewer.gl3d.plugin.pfss.data.PfssCache;
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;

/**
 * Plugincontainer for Pfss
 *
 * @author Stefan Meier
 */
public class PfssPluginContainer extends OverlayContainer {

    private PfssCache pfssCache;
    private PfssPluginPanel pfssPluginPanel;
    private boolean builtin_mode = false;

    public PfssPluginContainer(boolean builtin_mode) {
        this.builtin_mode = builtin_mode;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected void installOverlayImpl(OverlayView overlayView, OverlayControlComponentManager controlList) {
        pfssCache = new PfssCache();
        pfssPluginPanel = new PfssPluginPanel(pfssCache);
        OverlayPluginContainer overlayPluginContainer = new OverlayPluginContainer();
        overlayPluginContainer.setRenderer3d(new PfssPlugin3dRenderer(pfssCache));
        overlayView.addOverlay(overlayPluginContainer);
        controlList.add(new OverlayControlComponent(pfssPluginPanel, getName()));

    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getDescription() {
        return null;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String getName() {
        return "PFSS " + (builtin_mode ? "Built-In Version" : "");
    }

    @Override
    public Class<? extends PhysicalRenderer> getOverlayClass() {
        return PfssPlugin3dRenderer.class;
    }

}

@@ -1635,16 +1635,22 @@
 n %22PFSS 
+Model 
 %22 + (bui

Change label