@@ -0,0 +1,2129 @@
+package org.helioviewer.gl3d.camera;%0A%0Aimport java.awt.EventQueue;%0Aimport java.awt.event.ItemEvent;%0Aimport java.awt.event.ItemListener;%0A%0Aimport javax.swing.BoxLayout;%0Aimport javax.swing.JComboBox;%0Aimport javax.swing.JPanel;%0A%0Aimport org.helioviewer.gl3d.gui.GL3DCameraSelectorModel;%0A%0Apublic class GL3DCameraOptionsPanel extends JPanel %7B%0A    private static final long serialVersionUID = 3942154069677445408L;%0A    private JComboBox cameraComboBox;%0A    private GL3DCameraSelectorModel cameraSelectorModel;%0A    private JPanel optionsPanel;%0A    private final GL3DCameraOptionsAttributeManager cameraOptionsAttributeManager = GL3DCameraOptionsAttributeManager.getSingletonInstance();%0A%0A    public GL3DCameraOptionsPanel() %7B%0A        setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));%0A%0A        EventQueue.invokeLater(new Runnable() %7B%0A            @Override%0A            public void run() %7B%0A                addCameraComboBox();%0A            %7D%0A        %7D);%0A    %7D%0A%0A    private void addCameraComboBox() %7B%0A        cameraSelectorModel = GL3DCameraSelectorModel.getInstance();%0A        this.cameraComboBox = new JComboBox(cameraSelectorModel);%0A        add(this.cameraComboBox);%0A        this.cameraComboBox.addItemListener(new ItemListener() %7B%0A            @Override%0A            public void itemStateChanged(ItemEvent event) %7B%0A                if (event.getStateChange() == ItemEvent.SELECTED) %7B%0A                    GL3DCamera selectedCamera = (GL3DCamera) event.getItem();%0A                    if (selectedCamera != null) %7B%0A                        cameraSelectorModel.getCurrentCamera().deactivate();%0A                        cameraSelectorModel.setCurrentCamera(selectedCamera);%0A                        cameraSelectorModel.getCurrentCamera().activate();%0A                        if (optionsPanel != null) %7B%0A                            remove(optionsPanel);%0A                        %7D%0A                        optionsPanel = cameraOptionsAttributeManager.getCameraOptionAttributePanel(selectedCamera);%0A                        add(optionsPanel);%0A                        revalidate();%0A                    %7D%0A                %7D%0A            %7D%0A        %7D);%0A    %7D%0A%7D%0A

Add option panels