package org.helioviewer.gl3d.camera;

public class GL3DSpaceObject {
    private final String urlName;
    private final String labelName;
    private static GL3DSpaceObject objectList[];

    public static GL3DSpaceObject[] getObjectList() {
        if (objectList == null) {
            createObjectList();
        }
        return objectList;
    }

    private static void createObjectList() {
        objectList = new GL3DSpaceObject[4];
        objectList[0] = new GL3DSpaceObject("Earth", "Earth");
        objectList[1] = new GL3DSpaceObject("Mercury", "Mercury");
        objectList[2] = new GL3DSpaceObject("Venus", "Venus");
        objectList[3] = new GL3DSpaceObject("Solar%20Orbiter", "Solar Orbiter");
    }

    private GL3DSpaceObject(String urlName, String labelName) {
        this.urlName = urlName;
        this.labelName = labelName;
    }

    public String getUrlName() {
        return this.urlName;
    }

    @Override
    public String toString() {
        return this.labelName;
    }
}

@@ -436,9 +436,9 @@
 ect%5B
-4
+9
 %5D;%0A 
@@ -459,16 +459,146 @@
 ist%5B0%5D =
+ new GL3DSpaceObject(%22Mercury%22, %22Mercury%22);%0A        objectList%5B1%5D = new GL3DSpaceObject(%22Venus%22, %22Venus%22);%0A        objectList%5B2%5D =
  new GL3
@@ -640,33 +640,33 @@
      objectList%5B
-1
+3
 %5D = new GL3DSpac
@@ -675,33 +675,92 @@
 bject(%22M
-ercury
+ars%22, %22Mars%22);%0A        objectList%5B4%5D = new GL3DSpaceObject(%22Saturn
 %22, %22
-Mercury
+Saturn
 %22);%0A    
@@ -766,33 +766,33 @@
      objectList%5B
-2
+5
 %5D = new GL3DSpac
@@ -796,35 +796,37 @@
 paceObject(%22
-Ve
+Ura
 nus%22, %22
-Ve
+Ura
 nus%22);%0A     
@@ -831,33 +831,163 @@
      objectList%5B
-3
+6%5D = new GL3DSpaceObject(%22Jupiter%22, %22Jupiter%22);%0A        objectList%5B7%5D = new GL3DSpaceObject(%22Pluto%22, %22Pluto%22);%0A        objectList%5B8
 %5D = new GL3DSpac

Add objects