Rework the CustomExpression evaluation to use SimulationListeners. Removed the OpenR...
[debian/openrocket] / android / src / net / sf / openrocket / android / CurrentRocket.java
index 17e2929a02b46c36d478195021e411269af00529..36446063955e82b39a326779b03bf061e96acaa7 100644 (file)
@@ -75,8 +75,7 @@ public class CurrentRocket {
        public synchronized void addNewSimulation( Context context ) {\r
                isModified = true;\r
                Rocket rocket = rocketDocument.getRocket();\r
-               // FIXME - hopefully the change to the Simulation object will be reverted soon.\r
-               Simulation newSim = new Simulation(rocketDocument, rocket);\r
+               Simulation newSim = new Simulation(rocket);\r
                newSim.setName(rocketDocument.getNextSimulationName());\r
                rocketDocument.addSimulation(newSim);\r
                notifySimsChanged(context);\r
@@ -95,6 +94,11 @@ public class CurrentRocket {
                return configId;\r
        }\r
        \r
+       public synchronized void deleteMotorConfig( Context context, String config ) {\r
+               rocketDocument.getRocket().removeMotorConfigurationID(config);\r
+               notifyMotorConfigChanged(context);\r
+       }\r
+       \r
        /**\r
         * @param rocketDocument the rocketDocument to set\r
         */\r